]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_deaf.cpp
Fix potential for duplicate SID if the SID is auto generated.
[user/henk/code/inspircd.git] / src / modules / m_deaf.cpp
index ad8b31714ee089e26f2633e846ec4b7e6b070295..c7d40115a6bc5769fcc96ed3e0f2217b269d347e 100644 (file)
@@ -12,9 +12,6 @@
  */
 
 #include "inspircd.h"
-#include "users.h"
-#include "channels.h"
-#include "modules.h"
 
 /* $ModDesc: Provides support for ircu style usermode +d (deaf to channel messages and channel notices) */
 
@@ -108,9 +105,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);