summaryrefslogtreecommitdiff
path: root/src/channels.cpp
diff options
context:
space:
mode:
authorAttila Molnar <attilamolnar@hush.com>2016-03-05 16:41:24 +0100
committerAttila Molnar <attilamolnar@hush.com>2016-03-05 16:41:24 +0100
commit0586ec9baa7961240e0eab5b27d7823a9d465704 (patch)
treee8c87edd8b1fa10c5110227a8f7d1c6922adeb12 /src/channels.cpp
parent33d0a3b53a7bb8d2f13aac9ed2f81cde4dbbb4ff (diff)
Add Channel::WriteNotice()
Diffstat (limited to 'src/channels.cpp')
-rw-r--r--src/channels.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/channels.cpp b/src/channels.cpp
index a2d5c4a30..14b1ea545 100644
--- a/src/channels.cpp
+++ b/src/channels.cpp
@@ -562,6 +562,13 @@ const char* Channel::ChanModes(bool showkey)
return scratch.c_str();
}
+void Channel::WriteNotice(const std::string& text)
+{
+ std::string rawmsg = "NOTICE ";
+ rawmsg.append(this->name).append(" :").append(text);
+ WriteChannelWithServ(ServerInstance->Config->ServerName, rawmsg);
+}
+
/* returns the status character for a given user on a channel, e.g. @ for op,
* % for halfop etc. If the user has several modes set, the highest mode
* the user has must be returned.