From 4edae179025a9a803c31c40883ea9c5816bf89e4 Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Wed, 29 Jan 2020 14:14:25 +0000 Subject: The KNOCK command is broadcast so we should only send local notices. See also: #1749. --- src/modules/m_knock.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/modules/m_knock.cpp b/src/modules/m_knock.cpp index e9e40c710..afe12bf0d 100644 --- a/src/modules/m_knock.cpp +++ b/src/modules/m_knock.cpp @@ -84,7 +84,7 @@ class CommandKnock : public Command } if (sendnotice) - c->WriteRemoteNotice(InspIRCd::Format("User %s is KNOCKing on %s (%s)", 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) { -- cgit v1.2.3