diff options
| author | 2016-03-05 16:58:50 +0100 | |
|---|---|---|
| committer | 2016-03-05 16:58:50 +0100 | |
| commit | cee5a82d95fc3f5d3670ef483998bfc2d4a5a82e (patch) | |
| tree | d70d970fbde253cdc2e5a47343c758480e9bae71 /src/channels.cpp | |
| parent | Merge pull request #1150 from johanna-a/conname_extban (diff) | |
| parent | Send NOTICEs to local channel members with Channel::WriteNotice() (diff) | |
Merge branch 'master+chanwritenotice'
Diffstat (limited to 'src/channels.cpp')
| -rw-r--r-- | src/channels.cpp | 7 |
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. |
