aboutsummaryrefslogtreecommitdiff
path: root/src/modules/m_nickflood.cpp
diff options
context:
space:
mode:
authorGravatar Attila Molnar2016-03-05 16:46:03 +0100
committerGravatar Attila Molnar2016-03-05 16:46:03 +0100
commit0412378109ae9f618e47b2bb60729c0d8f29fe8d (patch)
treed70d970fbde253cdc2e5a47343c758480e9bae71 /src/modules/m_nickflood.cpp
parentAdd Channel::WriteNotice() (diff)
Send NOTICEs to local channel members with Channel::WriteNotice()
Diffstat (limited to 'src/modules/m_nickflood.cpp')
-rw-r--r--src/modules/m_nickflood.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/m_nickflood.cpp b/src/modules/m_nickflood.cpp
index 0af1041f9..39e097daa 100644
--- a/src/modules/m_nickflood.cpp
+++ b/src/modules/m_nickflood.cpp
@@ -150,7 +150,7 @@ class ModuleNickFlood : public Module
{
f->clear();
f->lock();
- channel->WriteChannelWithServ((char*)ServerInstance->Config->ServerName.c_str(), "NOTICE %s :No nick changes are allowed for 60 seconds because there have been more than %u nick changes in %u seconds.", channel->name.c_str(), f->nicks, f->secs);
+ channel->WriteNotice(InspIRCd::Format("No nick changes are allowed for 60 seconds because there have been more than %u nick changes in %u seconds.", f->nicks, f->secs));
return MOD_RES_DENY;
}
}