summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
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);