summaryrefslogtreecommitdiff
path: root/src/modules/m_knock.cpp
diff options
context:
space:
mode:
authorAttila Molnar <attilamolnar@hush.com>2016-03-05 16:46:03 +0100
committerAttila Molnar <attilamolnar@hush.com>2016-03-05 16:46:03 +0100
commit0412378109ae9f618e47b2bb60729c0d8f29fe8d (patch)
treed70d970fbde253cdc2e5a47343c758480e9bae71 /src/modules/m_knock.cpp
parent0586ec9baa7961240e0eab5b27d7823a9d465704 (diff)
Send NOTICEs to local channel members with Channel::WriteNotice()
Diffstat (limited to 'src/modules/m_knock.cpp')
-rw-r--r--src/modules/m_knock.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/m_knock.cpp b/src/modules/m_knock.cpp
index 545c2dc14..a6352749f 100644
--- a/src/modules/m_knock.cpp
+++ b/src/modules/m_knock.cpp
@@ -68,7 +68,7 @@ class CommandKnock : public Command
}
if (sendnotice)
- c->WriteChannelWithServ(ServerInstance->Config->ServerName, "NOTICE %s :User %s is KNOCKing on %s (%s)", c->name.c_str(), user->nick.c_str(), c->name.c_str(), parameters[1].c_str());
+ c->WriteNotice(InspIRCd::Format("User %s is KNOCKing on %s (%s)", user->nick.c_str(), c->name.c_str(), parameters[1].c_str()));
if (sendnumeric)
c->WriteChannelWithServ(ServerInstance->Config->ServerName, "710 %s %s %s :is KNOCKing: %s", c->name.c_str(), c->name.c_str(), user->GetFullHost().c_str(), parameters[1].c_str());