aboutsummaryrefslogtreecommitdiffstats
path: root/src/modules/m_deaf.cpp
diff options
context:
space:
mode:
authorGravatar w00t2007-08-06 07:58:37 +0000
committerGravatar w00t2007-08-06 07:58:37 +0000
commit1155f2492cc9e457681cd4530c0c5358392e6d7c (patch)
treeee51df44ed526b3e18d44b459609cd06e7fa8da3 /src/modules/m_deaf.cpp
parentThis is supported in exemptchanops (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.cpp3
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);