From 1155f2492cc9e457681cd4530c0c5358392e6d7c Mon Sep 17 00:00:00 2001 From: w00t Date: Mon, 6 Aug 2007 07:58:37 +0000 Subject: 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 --- src/modules/m_deaf.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/modules/m_deaf.cpp') 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); -- cgit v1.2.3