]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_nonotice.cpp
Move OnSync{Channel,Network,User} to ServerEventListener.
[user/henk/code/inspircd.git] / src / modules / m_nonotice.cpp
index ec5be951735ad68231ec059d1f62c8d48eb186b3..d7ea32d2f7b5b5ebaab03d62f73a5d6192aac8d4 100644 (file)
 #include "inspircd.h"
 #include "modules/exemption.h"
 
-class NoNotice : public SimpleChannelModeHandler
-{
- public:
-       NoNotice(Module* Creator) : SimpleChannelModeHandler(Creator, "nonotice", 'T') { }
-};
-
 class ModuleNoNotice : public Module
 {
        CheckExemption::EventProvider exemptionprov;
-       NoNotice nt;
+       SimpleChannelModeHandler nt;
  public:
 
        ModuleNoNotice()
                : exemptionprov(this)
-               , nt(this)
+               , nt(this, "nonotice", 'T')
        {
        }
 
@@ -53,7 +47,7 @@ class ModuleNoNotice : public Module
                        Channel* c = (Channel*)dest;
                        if (!c->GetExtBanStatus(user, 'T').check(!c->IsModeSet(nt)))
                        {
-                               FIRST_MOD_RESULT_CUSTOM(exemptionprov, CheckExemption::EventListener, OnCheckExemption, res, (user, c, "nonotice"));
+                               res = CheckExemption::Call(exemptionprov, user, c, "nonotice");
                                if (res == MOD_RES_ALLOW)
                                        return MOD_RES_PASSTHRU;
                                else