]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_gecosban.cpp
Add method for writing server notices.
[user/henk/code/inspircd.git] / src / modules / m_gecosban.cpp
index 1497c1b87b3f808503c80da9a03df7d22fb14669..b33362a8df281f1905256df66f026b981bd5e0b7 100644 (file)
@@ -30,10 +30,6 @@ class ModuleGecosBan : public Module
                ServerInstance->Modules->Attach(eventlist, this, sizeof(eventlist)/sizeof(Implementation));
        }
 
-       ~ModuleGecosBan()
-       {
-       }
-
        Version GetVersion()
        {
                return Version("Extban 'r' - realname (gecos) ban", VF_OPTCOMMON|VF_VENDOR);
@@ -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');
        }
 };