diff options
author | Attila Molnar <attilamolnar@hush.com> | 2016-03-05 16:46:03 +0100 |
---|---|---|
committer | Attila Molnar <attilamolnar@hush.com> | 2016-03-05 16:46:03 +0100 |
commit | 0412378109ae9f618e47b2bb60729c0d8f29fe8d (patch) | |
tree | d70d970fbde253cdc2e5a47343c758480e9bae71 /src/modules/m_knock.cpp | |
parent | 0586ec9baa7961240e0eab5b27d7823a9d465704 (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.cpp | 2 |
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()); |