@@ -238,7+236,7 @@ class ModuleNickFlood : public Module
if (f->islocked())
{
if (f->islocked())
{
- user->WriteServ("447 %s :%s has been locked for nickchanges for 60 seconds because there have been more than %d nick changes in %d seconds", user->nick, channel->name, f->nicks, f->secs);
+ user->WriteNumeric(447, "%s :%s has been locked for nickchanges for 60 seconds because there have been more than %d nick changes in %d seconds", user->nick.c_str(), channel->name.c_str(), f->nicks, f->secs);
return 1;
}
return 1;
}
@@ -247,7+245,7 @@ class ModuleNickFlood : public Module
{
f->clear();
f->lock();
{
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, f->nicks, f->secs);
+ 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);
return 1;
}
}
return 1;
}
}
@@ -255,7+253,7 @@ class ModuleNickFlood : public Module
return 0;
}
return 0;
}
-
+
void OnChannelDelete(Channel* chan)
{
nickfloodsettings *f;
void OnChannelDelete(Channel* chan)
{
nickfloodsettings *f;
@@ -272,10+270,10 @@ class ModuleNickFlood : public Module