]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_chanprotect.cpp
Dont echo the JOIN to the user whos speaking
[user/henk/code/inspircd.git] / src / modules / m_chanprotect.cpp
index 325069d0b40503e457c1de2853c46a7f2df749e0..4f4ace1e7d1e4c2ab752b4bbffda61be4aa86fca 100644 (file)
@@ -309,7 +309,7 @@ class ModuleChanProtect : public Module
                cp = new ChanProtect(ServerInstance,QAPrefixes,DeprivSelf,DeprivOthers);
                cf = new ChanFounder(ServerInstance,QAPrefixes,DeprivSelf,DeprivOthers);
 
-               if (!ServerInstance->AddMode(cp, 'a') || !ServerInstance->AddMode(cf, 'q'))
+               if (!ServerInstance->AddMode(cp) || !ServerInstance->AddMode(cf))
                        throw ModuleException("Could not add new modes!");
        }
 
@@ -361,8 +361,8 @@ class ModuleChanProtect : public Module
                        cp = new ChanProtect(ServerInstance,QAPrefixes,DeprivSelf,DeprivOthers);
                        cf = new ChanFounder(ServerInstance,QAPrefixes,DeprivSelf,DeprivOthers);
                        /* These wont fail, we already owned the mode characters before */
-                       ServerInstance->AddMode(cp, 'a');
-                       ServerInstance->AddMode(cf, 'q');
+                       ServerInstance->AddMode(cp);
+                       ServerInstance->AddMode(cf);
                        ServerInstance->WriteOpers("*** WARNING: +qa prefixes were enabled or disabled via a REHASH. Clients will probably need to reconnect to pick up this change.");
                }
        }