From 823f5b3ee0d9dcb83e379f0e404500361c2e5cb5 Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Fri, 31 Jan 2020 10:32:28 +0000 Subject: [PATCH] Fix the chanhistory module not storing CTCP ACTIONs. --- src/modules/m_chanhistory.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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); -- 2.39.5