diff options
| author | 2020-01-03 22:22:21 +0000 | |
|---|---|---|
| committer | 2020-01-03 22:28:45 +0000 | |
| commit | 7a2462b891ba055cbedbf4d94ea3d5af50afa97c (patch) | |
| tree | 72538e80acf6d434fd75372d36997bc31daf301d /src/modules | |
| parent | Make chanhistory replay notices as well as privmsgs. (diff) | |
Make chanhistory skip CTCPs when storing messages.
Sending historic CTCPs to clients can only end badly.
Diffstat (limited to 'src/modules')
| -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); |
