@@ -207,13+205,13 @@ class NickFlood : public ModeHandler
class ModuleNickFlood : public Module
{
NickFlood* jf;
class ModuleNickFlood : public Module
{
NickFlood* jf;
-
+
public:
public:
-
+
ModuleNickFlood(InspIRCd* Me)
: Module(Me)
{
ModuleNickFlood(InspIRCd* Me)
: Module(Me)
{
-
+
jf = new NickFlood(ServerInstance);
if (!ServerInstance->Modes->AddMode(jf))
throw ModuleException("Could not add new modes!");
jf = new NickFlood(ServerInstance);
if (!ServerInstance->Modes->AddMode(jf))
throw ModuleException("Could not add new modes!");
@@ -238,7+236,7 @@ class ModuleNickFlood : public Module
if (f->islocked())
{
if (f->islocked())
{
- 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, 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