aboutsummaryrefslogtreecommitdiffstats
path: root/src/modules/m_chanlog.cpp
diff options
context:
space:
mode:
authorGravatar Peter Powell2018-08-13 20:17:46 +0100
committerGravatar Peter Powell2018-08-13 21:51:11 +0100
commit58a0a7e01422e62de1565a8eb0a1febdc463d04d (patch)
tree8861789deefe9df3524690de8ccd11e5366f1f2e /src/modules/m_chanlog.cpp
parentAdd an accessor for the last mode change list to ModeParser. (diff)
downloadinspircd++-58a0a7e01422e62de1565a8eb0a1febdc463d04d.tar.gz
inspircd++-58a0a7e01422e62de1565a8eb0a1febdc463d04d.tar.bz2
inspircd++-58a0a7e01422e62de1565a8eb0a1febdc463d04d.zip
Implement IRCv3 message tag support.
Co-authored-by: Attila Molnar <attilamolnar@hush.com>
Diffstat (limited to 'src/modules/m_chanlog.cpp')
-rw-r--r--src/modules/m_chanlog.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/modules/m_chanlog.cpp b/src/modules/m_chanlog.cpp
index f618a539c..85e7ca2eb 100644
--- a/src/modules/m_chanlog.cpp
+++ b/src/modules/m_chanlog.cpp
@@ -70,7 +70,8 @@ class ModuleChanLog : public Module
Channel *c = ServerInstance->FindChan(it->second);
if (c)
{
- c->WriteChannelWithServ(ServerInstance->Config->ServerName, "PRIVMSG %s :%s", c->name.c_str(), snotice.c_str());
+ ClientProtocol::Messages::Privmsg privmsg(ClientProtocol::Messages::Privmsg::nocopy, ServerInstance->Config->ServerName, c, snotice);
+ c->Write(ServerInstance->GetRFCEvents().privmsg, privmsg);
ServerInstance->PI->SendMessage(c, 0, snotice);
}
}