summaryrefslogtreecommitdiff
path: root/src/irc
diff options
context:
space:
mode:
authorlouiz’ <louiz@louiz.org>2018-06-22 21:33:58 +0200
committerlouiz’ <louiz@louiz.org>2018-06-22 21:35:46 +0200
commit0b8738d87aa101117c7681ade41f8527ad515d3c (patch)
tree446aa4453448dc3a4fc17ad51ab18aa84cbb0d0e /src/irc
parent21a79b7bad51e755cee2890aa6d0bec5dd45f901 (diff)
downloadbiboumi-0b8738d87aa101117c7681ade41f8527ad515d3c.tar.gz
biboumi-0b8738d87aa101117c7681ade41f8527ad515d3c.tar.bz2
biboumi-0b8738d87aa101117c7681ade41f8527ad515d3c.tar.xz
biboumi-0b8738d87aa101117c7681ade41f8527ad515d3c.zip
Archive the Mode messages, except if they are received for an unjoined chan
fix #3362
Diffstat (limited to 'src/irc')
-rw-r--r--src/irc/irc_client.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/irc/irc_client.cpp b/src/irc/irc_client.cpp
index 0f3d43c..96fb4ef 100644
--- a/src/irc/irc_client.cpp
+++ b/src/irc/irc_client.cpp
@@ -1154,7 +1154,7 @@ void IrcClient::on_channel_mode(const IrcMessage& message)
}
this->bridge.send_message(iid, "", "Mode " + iid.get_local() +
" [" + mode_arguments + "] by " + user.nick,
- true);
+ true, this->is_channel_joined(iid.get_local()));
const IrcChannel* channel = this->get_channel(iid.get_local());
if (!channel)
return;