summaryrefslogtreecommitdiff
path: root/src/channels.cpp
diff options
context:
space:
mode:
authorPeter Powell <petpow@saberuk.com>2019-11-17 22:06:36 +0000
committerPeter Powell <petpow@saberuk.com>2019-11-17 22:17:42 +0000
commit687778b72e31322a73b2e2e17af6bd0f2a2561bc (patch)
treed492c428f43378723357a0f82a2cb73ba994ad83 /src/channels.cpp
parentb443df39386c77cf2d027e2b45c4d629261e0100 (diff)
Allow Channel::WriteNotice send to other servers and status ranks.
Diffstat (limited to 'src/channels.cpp')
-rw-r--r--src/channels.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/channels.cpp b/src/channels.cpp
index 282199718..5baaf03ee 100644
--- a/src/channels.cpp
+++ b/src/channels.cpp
@@ -473,10 +473,11 @@ const char* Channel::ChanModes(bool showsecret)
return scratch.c_str();
}
-void Channel::WriteNotice(const std::string& text)
+void Channel::WriteNotice(const std::string& text, char status)
{
- ClientProtocol::Messages::Privmsg privmsg(ClientProtocol::Messages::Privmsg::nocopy, ServerInstance->FakeClient, this, text, MSG_NOTICE);
+ ClientProtocol::Messages::Privmsg privmsg(ClientProtocol::Messages::Privmsg::nocopy, ServerInstance->FakeClient, this, text, MSG_NOTICE, status);
Write(ServerInstance->GetRFCEvents().privmsg, privmsg);
+ ServerInstance->PI->SendMessage(this, status, text, MSG_NOTICE);
}
/* returns the status character for a given user on a channel, e.g. @ for op,