handle clearchat in read connection

This commit is contained in:
Rasmus Karlsson 2019-09-21 11:54:30 +02:00
parent 88da9501f7
commit d94be74007

View file

@ -166,6 +166,10 @@ void TwitchIrcServer::readConnectionMessageReceived(
// Received ROOMSTATE upon JOINing a channel
handler.handleRoomStateMessage(message);
}
else if (command == "CLEARCHAT")
{
handler.handleClearChatMessage(message);
}
}
void TwitchIrcServer::writeConnectionMessageReceived(
@ -193,10 +197,6 @@ void TwitchIrcServer::writeConnectionMessageReceived(
{
handler.handleRoomStateMessage(message);
}
else if (command == "CLEARCHAT")
{
handler.handleClearChatMessage(message);
}
else if (command == "CLEARMSG")
{
handler.handleClearMessageMessage(message);