diff options
author | w00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7> | 2007-08-06 07:58:37 +0000 |
---|---|---|
committer | w00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7> | 2007-08-06 07:58:37 +0000 |
commit | 1155f2492cc9e457681cd4530c0c5358392e6d7c (patch) | |
tree | ee51df44ed526b3e18d44b459609cd06e7fa8da3 /src/modules/m_deaf.cpp | |
parent | 4b1c5054ee9f83b5061547ddba40ebd9eed3e8a6 (diff) |
Fix m_deaf not restricting messages from remote users, fixes bug #378 reported by Skip
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7676 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules/m_deaf.cpp')
-rw-r--r-- | src/modules/m_deaf.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/modules/m_deaf.cpp b/src/modules/m_deaf.cpp index ad8b31714..12ef0ddda 100644 --- a/src/modules/m_deaf.cpp +++ b/src/modules/m_deaf.cpp @@ -108,9 +108,10 @@ class ModuleDeaf : public Module virtual int PreText(userrec* user,void* dest,int target_type, std::string &text, char status, CUList &exempt_list) { - if ((target_type == TYPE_CHANNEL) & (IS_LOCAL(user))) + if (target_type == TYPE_CHANNEL) { chanrec* chan = (chanrec*)dest; + if (chan) { this->OnBuildExemptList(MSG_PRIVMSG, chan, user, status, exempt_list); |