diff --git a/src/gui/qt/chattools/chattools.cpp b/src/gui/qt/chattools/chattools.cpp index 7ffd422f..1554fbcf 100644 --- a/src/gui/qt/chattools/chattools.cpp +++ b/src/gui/qt/chattools/chattools.cpp @@ -65,7 +65,7 @@ void ChatTools::receiveMessage(QString playerName, QString message) { QString tempMsg; - if(INET_LOBBY_CHAT && playerName == "(chat bot)" && message.startsWith(myNick)) { + if(myChatType == INET_LOBBY_CHAT && playerName == "(chat bot)" && message.startsWith(myNick)) { tempMsg = QString(""+message+""); //play beep sound only in INET-lobby-chat