diff options
| author | 2009-09-02 00:49:36 +0000 | |
|---|---|---|
| committer | 2009-09-02 00:49:36 +0000 | |
| commit | 86775e2e98f55b3b88befe2daff0ca23f02f3155 (patch) | |
| tree | cbc3abf3f55ae6fd1112bcf6bf44e02b502ac2d6 /src/modules/m_deaf.cpp | |
| parent | Remove "servermode" parameter, replace with IS_FAKE() which is more reliable (diff) | |
ModResult conversion: Change return type of all module functions
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11634 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules/m_deaf.cpp')
| -rw-r--r-- | src/modules/m_deaf.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/modules/m_deaf.cpp b/src/modules/m_deaf.cpp index 0600d1ab9..aaa3696b5 100644 --- a/src/modules/m_deaf.cpp +++ b/src/modules/m_deaf.cpp @@ -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) |
