diff --git a/src/providers/twitch/TwitchIrcServer.cpp b/src/providers/twitch/TwitchIrcServer.cpp index 817fe0e4a..de0e9efba 100644 --- a/src/providers/twitch/TwitchIrcServer.cpp +++ b/src/providers/twitch/TwitchIrcServer.cpp @@ -170,6 +170,23 @@ void TwitchIrcServer::readConnectionMessageReceived( { handler.handleClearChatMessage(message); } + else if (command == "CLEARMSG") + { + handler.handleClearMessageMessage(message); + } + else if (command == "USERNOTICE") + { + handler.handleUserNoticeMessage(message, *this); + } + else if (command == "NOTICE") + { + handler.handleNoticeMessage( + static_cast(message)); + } + else if (command == "WHISPER") + { + handler.handleWhisperMessage(message); + } } void TwitchIrcServer::writeConnectionMessageReceived( @@ -185,27 +202,6 @@ void TwitchIrcServer::writeConnectionMessageReceived( // Received USERSTATE upon PRIVMSGing handler.handleUserStateMessage(message); } - else if (command == "WHISPER") - { - handler.handleWhisperMessage(message); - } - else if (command == "USERNOTICE") - { - handler.handleUserNoticeMessage(message, *this); - } - else if (command == "ROOMSTATE") - { - handler.handleRoomStateMessage(message); - } - else if (command == "CLEARMSG") - { - handler.handleClearMessageMessage(message); - } - else if (command == "NOTICE") - { - handler.handleNoticeMessage( - static_cast(message)); - } } void TwitchIrcServer::onReadConnected(IrcConnection *connection)