Archive the Mode messages, except if they are received for an unjoined chan

fix #3362
This commit is contained in:
louiz’
2018-06-22 21:35:46 +02:00
parent 21a79b7bad
commit 0b8738d87a
3 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -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;