From: Sadie Powell Date: Fri, 31 Jan 2020 10:32:28 +0000 (+0000) Subject: Fix the chanhistory module not storing CTCP ACTIONs. X-Git-Url: https://git.netwichtig.de/gitweb/?a=commitdiff_plain;h=823f5b3ee0d9dcb83e379f0e404500361c2e5cb5;p=user%2Fhenk%2Fcode%2Finspircd.git Fix the chanhistory module not storing CTCP ACTIONs. --- diff --git a/src/modules/m_chanhistory.cpp b/src/modules/m_chanhistory.cpp index e6f335a0a..ab2cae815 100644 --- a/src/modules/m_chanhistory.cpp +++ b/src/modules/m_chanhistory.cpp @@ -208,7 +208,8 @@ class ModuleChanHistory void OnUserPostMessage(User* user, const MessageTarget& target, const MessageDetails& details) CXX11_OVERRIDE { - if ((target.type == MessageTarget::TYPE_CHANNEL) && (target.status == 0) && !details.IsCTCP()) + std::string ctcpname; + if ((target.type == MessageTarget::TYPE_CHANNEL) && (target.status == 0) && (!details.IsCTCP(ctcpname) || irc::equals(ctcpname, "ACTION"))) { Channel* c = target.Get(); HistoryList* list = m.ext.get(c);