diff options
author | Sadie Powell <sadie@witchery.services> | 2020-01-03 22:22:21 +0000 |
---|---|---|
committer | Sadie Powell <sadie@witchery.services> | 2020-01-03 22:28:45 +0000 |
commit | 7a2462b891ba055cbedbf4d94ea3d5af50afa97c (patch) | |
tree | 72538e80acf6d434fd75372d36997bc31daf301d | |
parent | b3d82bb7a89ce550f5a60a668ce36bf2a3a22495 (diff) |
Make chanhistory skip CTCPs when storing messages.
Sending historic CTCPs to clients can only end badly.
-rw-r--r-- | src/modules/m_chanhistory.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/m_chanhistory.cpp b/src/modules/m_chanhistory.cpp index 7a64e56c6..cfe2a6916 100644 --- a/src/modules/m_chanhistory.cpp +++ b/src/modules/m_chanhistory.cpp @@ -202,7 +202,7 @@ class ModuleChanHistory void OnUserPostMessage(User* user, const MessageTarget& target, const MessageDetails& details) CXX11_OVERRIDE { - if ((target.type == MessageTarget::TYPE_CHANNEL) && (target.status == 0)) + if ((target.type == MessageTarget::TYPE_CHANNEL) && (target.status == 0) && !details.IsCTCP()) { Channel* c = target.Get<Channel>(); HistoryList* list = m.ext.get(c); |