summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorw00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7>2007-08-06 07:58:37 +0000
committerw00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7>2007-08-06 07:58:37 +0000
commit1155f2492cc9e457681cd4530c0c5358392e6d7c (patch)
treeee51df44ed526b3e18d44b459609cd06e7fa8da3 /src
parent4b1c5054ee9f83b5061547ddba40ebd9eed3e8a6 (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')
-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);