]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_deaf.cpp
Fix memory leak and invalid vtable location on unload of m_sslinfo
[user/henk/code/inspircd.git] / src / modules / m_deaf.cpp
index 0600d1ab979bfc921e601f18e49d67a8b820b8a5..aaa3696b5fc52b0887e2c31b972d638c2c9bdc04 100644 (file)
@@ -74,7 +74,7 @@ class ModuleDeaf : public Module
                delete conf;
        }
 
-       virtual int OnUserPreNotice(User* user,void* dest,int target_type, std::string &text, char status, CUList &exempt_list)
+       virtual ModResult OnUserPreNotice(User* user,void* dest,int target_type, std::string &text, char status, CUList &exempt_list)
        {
                if (target_type == TYPE_CHANNEL)
                {
@@ -83,10 +83,10 @@ class ModuleDeaf : public Module
                                this->BuildDeafList(MSG_NOTICE, chan, user, status, text, exempt_list);
                }
 
-               return 0;
+               return MOD_RES_PASSTHRU;
        }
 
-       virtual int OnUserPreMessage(User* user,void* dest,int target_type, std::string &text, char status, CUList &exempt_list)
+       virtual ModResult OnUserPreMessage(User* user,void* dest,int target_type, std::string &text, char status, CUList &exempt_list)
        {
                if (target_type == TYPE_CHANNEL)
                {
@@ -95,7 +95,7 @@ class ModuleDeaf : public Module
                                this->BuildDeafList(MSG_PRIVMSG, chan, user, status, text, exempt_list);
                }
 
-               return 0;
+               return MOD_RES_PASSTHRU;
        }
 
        virtual void OnBuildExemptList(MessageType message_type, Channel* chan, User* sender, char status, CUList &exempt_list, const std::string &text)