summaryrefslogtreecommitdiff
path: root/src/modules/m_nickflood.cpp
diff options
context:
space:
mode:
authorAttila Molnar <attilamolnar@hush.com>2016-03-05 16:58:50 +0100
committerAttila Molnar <attilamolnar@hush.com>2016-03-05 16:58:50 +0100
commitcee5a82d95fc3f5d3670ef483998bfc2d4a5a82e (patch)
treed70d970fbde253cdc2e5a47343c758480e9bae71 /src/modules/m_nickflood.cpp
parent33d0a3b53a7bb8d2f13aac9ed2f81cde4dbbb4ff (diff)
parent0412378109ae9f618e47b2bb60729c0d8f29fe8d (diff)
Merge branch 'master+chanwritenotice'
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;
}
}