aboutsummaryrefslogtreecommitdiff
path: root/src/channels.cpp
diff options
context:
space:
mode:
authorGravatar Sadie Powell2020-01-29 11:44:50 +0000
committerGravatar Sadie Powell2020-01-29 12:00:32 +0000
commit6597fe5d4fd2c1cc474fa35a0db21fec480ff47f (patch)
tree1ad5986e40cb8e7dc392af21cd5d0e5e119196c2 /src/channels.cpp
parentFix "control reaches end of non-void function" warning. (diff)
Add Channel::WriteRemoteNotice and revert WriteNotice changes.
This is a partial reversion of 687778b72e. See also: #1749.
Diffstat (limited to 'src/channels.cpp')
-rw-r--r--src/channels.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/channels.cpp b/src/channels.cpp
index 320fcab78..75c6ab1e6 100644
--- a/src/channels.cpp
+++ b/src/channels.cpp
@@ -479,6 +479,11 @@ void Channel::WriteNotice(const std::string& text, char status)
{
ClientProtocol::Messages::Privmsg privmsg(ClientProtocol::Messages::Privmsg::nocopy, ServerInstance->FakeClient, this, text, MSG_NOTICE, status);
Write(ServerInstance->GetRFCEvents().privmsg, privmsg);
+}
+
+void Channel::WriteRemoteNotice(const std::string& text, char status)
+{
+ WriteNotice(text, status);
ServerInstance->PI->SendMessage(this, status, text, MSG_NOTICE);
}