]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_nickflood.cpp
Run DelMode and DelModeWatcher in RemoveModule
[user/henk/code/inspircd.git] / src / modules / m_nickflood.cpp
index 4e6dca5b9ea376f3cdcaa40a0bac1eb2e864715e..733b55b64046bbe9f039b4b588a1b12619a530cc 100644 (file)
@@ -230,7 +230,7 @@ class ModuleNickFlood : public Module
                                {
                                        f->clear();
                                        f->lock();
-                                       channel->WriteChannelWithServ((char*)ServerInstance->Config->ServerName, "NOTICE %s :No nick changes are allowed for 60 seconds because there have been more than %d nick changes in %d seconds.", channel->name.c_str(), f->nicks, f->secs);
+                                       channel->WriteChannelWithServ((char*)ServerInstance->Config->ServerName.c_str(), "NOTICE %s :No nick changes are allowed for 60 seconds because there have been more than %d nick changes in %d seconds.", channel->name.c_str(), f->nicks, f->secs);
                                        return MOD_RES_DENY;
                                }
                        }
@@ -269,7 +269,6 @@ class ModuleNickFlood : public Module
 
        ~ModuleNickFlood()
        {
-               ServerInstance->Modes->DelMode(&nf);
        }
 
        Version GetVersion()