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));
}
NickFlood(Module* Creator)
: ParamMode<NickFlood, SimpleExtItem<nickfloodsettings> >(Creator, "nickflood", 'F')
{
+ syntax = "<nick-changes>:<seconds>";
}
ModeAction OnSet(User* source, Channel* channel, std::string& parameter) CXX11_OVERRIDE