X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Fmodules%2Fm_nickflood.cpp;h=48f085dde937201623e3a2a9a47a9e8fff7cdf78;hb=5a2af6ded883d71c6c4c9f1497cca1721f8b0742;hp=17d6db9560184802169389466bb70122bc64e580;hpb=87b1461e2a4710a38b32186c2582da9fe9bb3804;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/src/modules/m_nickflood.cpp b/src/modules/m_nickflood.cpp index 17d6db956..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