summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSadie Powell <sadie@witchery.services>2020-01-31 10:32:28 +0000
committerSadie Powell <sadie@witchery.services>2020-01-31 10:32:28 +0000
commit823f5b3ee0d9dcb83e379f0e404500361c2e5cb5 (patch)
tree41bac436da66a7e557e73447847cccdda6afa312 /src
parentef61e7b19ca6bee05b459088967242ae6950d9c5 (diff)
Fix the chanhistory module not storing CTCP ACTIONs.
Diffstat (limited to 'src')
-rw-r--r--src/modules/m_chanhistory.cpp3
1 files changed, 2 insertions, 1 deletions
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<Channel>();
HistoryList* list = m.ext.get(c);