X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Fmodules%2Fm_nickflood.cpp;h=48f085dde937201623e3a2a9a47a9e8fff7cdf78;hb=9cf381330eab69d7e5bf26684d1ec8075aee60a2;hp=ce8b364e45a36fa28fae1740947c3e02abff31ca;hpb=0f7cfd46ef2d277f5f82e34a2852c75212d75261;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/src/modules/m_nickflood.cpp b/src/modules/m_nickflood.cpp index ce8b364e4..48f085dde 100644 --- a/src/modules/m_nickflood.cpp +++ b/src/modules/m_nickflood.cpp @@ -54,10 +54,6 @@ class nickfloodsettings bool shouldlock() { - /* XXX HACK: using counter + 1 here now to allow the counter to only be incremented - * on successful nick changes; this will be checked before the counter is - * incremented. - */ return ((ServerInstance->Time() <= reset) && (counter == this->nicks)); } @@ -88,6 +84,7 @@ class NickFlood : public ParamMode > NickFlood(Module* Creator) : ParamMode >(Creator, "nickflood", 'F') { + syntax = ":"; } ModeAction OnSet(User* source, Channel* channel, std::string& parameter) CXX11_OVERRIDE @@ -202,7 +199,7 @@ class ModuleNickFlood : public Module Version GetVersion() CXX11_OVERRIDE { - return Version("Channel mode F - nick flood protection", VF_VENDOR); + return Version("Provides channel mode +F, nick flood protection", VF_VENDOR); } };