X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Fmodules%2Fm_nickflood.cpp;h=21f1438d970f3d7a954ee4473fe494fced9e3249;hb=93425ec211be8185fa9a428dcb24bc8b8121f917;hp=bf255e281c4fc3bd6e2917310b554d901419de25;hpb=12b9855339a3bbd05cc0636588ea68bf8db390f5;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/src/modules/m_nickflood.cpp b/src/modules/m_nickflood.cpp index bf255e281..21f1438d9 100644 --- a/src/modules/m_nickflood.cpp +++ b/src/modules/m_nickflood.cpp @@ -2,7 +2,7 @@ * | Inspire Internet Relay Chat Daemon | * +------------------------------------+ * - * InspIRCd: (C) 2002-2007 InspIRCd Development Team + * InspIRCd: (C) 2002-2008 InspIRCd Development Team * See: http://www.inspircd.org/wiki/index.php/Credits * * This program is free but copyrighted software; see @@ -105,7 +105,7 @@ class NickFlood : public ModeHandler return (their_param < our_param); } - ModeAction OnModeChange(User* source, User* dest, Channel* channel, std::string ¶meter, bool adding) + ModeAction OnModeChange(User* source, User* dest, Channel* channel, std::string ¶meter, bool adding, bool) { nickfloodsettings* dummy; @@ -215,7 +215,7 @@ class ModuleNickFlood : public Module { jf = new NickFlood(ServerInstance); - if (!ServerInstance->AddMode(jf)) + if (!ServerInstance->Modes->AddMode(jf)) throw ModuleException("Could not add new modes!"); Implementation eventlist[] = { I_OnChannelDelete, I_OnUserPreNick }; ServerInstance->Modules->Attach(eventlist, this, 2); @@ -266,10 +266,6 @@ class ModuleNickFlood : public Module } } - void Implements(char* List) - { - List[I_OnChannelDelete] = List[I_OnUserPreNick] = 1; - } virtual ~ModuleNickFlood() {