From 57e4bf97250a20f0b54957f2d5aabf02f158c171 Mon Sep 17 00:00:00 2001 From: Peter Powell Date: Wed, 3 Jan 2018 16:24:19 +0000 Subject: Fix m_chanhistory sending the history notice directly to the user. Closes #1452. --- src/channels.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/channels.cpp') 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); +} -- cgit v1.2.3