diff options
author | Peter Powell <petpow@saberuk.com> | 2018-01-03 16:24:19 +0000 |
---|---|---|
committer | Peter Powell <petpow@saberuk.com> | 2018-01-03 16:24:19 +0000 |
commit | 57e4bf97250a20f0b54957f2d5aabf02f158c171 (patch) | |
tree | e1bbfa45ea0ad696d576d8d197528c2a28d9415b /src/channels.cpp | |
parent | 372bb6ec31e26908966ff553b782c9a24a07db6a (diff) |
Fix m_chanhistory sending the history notice directly to the user.
Closes #1452.
Diffstat (limited to 'src/channels.cpp')
-rw-r--r-- | src/channels.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/channels.cpp b/src/channels.cpp index 7e6555ae8..352715728 100644 --- a/src/channels.cpp +++ b/src/channels.cpp @@ -660,3 +660,11 @@ bool Membership::SetPrefix(PrefixMode* delta_mh, bool adding) modes.push_back(prefix); return adding; } + + +void Membership::WriteNotice(const std::string& text) const +{ + std::string rawmsg = "NOTICE "; + rawmsg.append(chan->name).append(" :").append(text); + user->WriteServ(rawmsg); +} |