Clearchat now disables previous messages

Fix #499
This commit is contained in:
Rasmus Karlsson
2018-06-22 21:44:02 +00:00
parent dd0d6a0f88
commit 115031b7ac
3 changed files with 16 additions and 0 deletions
@@ -150,6 +150,7 @@ void IrcMessageHandler::handleClearChatMessage(Communi::IrcMessage *message)
// check if the chat has been cleared by a moderator
if (message->parameters().length() == 1) {
chan->disableAllMessages();
chan->addMessage(Message::createSystemMessage("Chat has been cleared by a moderator."));
return;