]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_gecosban.cpp
m_spanningtree Remove unneeded #includes
[user/henk/code/inspircd.git] / src / modules / m_gecosban.cpp
index 53cbf0fa4f8789f41eeb20dc362128efa446e5f0..b33362a8df281f1905256df66f026b981bd5e0b7 100644 (file)
@@ -27,11 +27,7 @@ class ModuleGecosBan : public Module
        void init()
        {
                Implementation eventlist[] = { I_OnCheckBan, I_On005Numeric };
-               ServerInstance->Modules->Attach(eventlist, this, 2);
-       }
-
-       ~ModuleGecosBan()
-       {
+               ServerInstance->Modules->Attach(eventlist, this, sizeof(eventlist)/sizeof(Implementation));
        }
 
        Version GetVersion()
@@ -49,9 +45,9 @@ class ModuleGecosBan : public Module
                return MOD_RES_PASSTHRU;
        }
 
-       void On005Numeric(std::string &output)
+       void On005Numeric(std::map<std::string, std::string>& tokens)
        {
-               ServerInstance->AddExtBanChar('r');
+               tokens["EXTBAN"].push_back('r');
        }
 };