diff --git a/src/gui/qt/chattools/chattools.cpp b/src/gui/qt/chattools/chattools.cpp index 7f77678b..7ffd422f 100644 --- a/src/gui/qt/chattools/chattools.cpp +++ b/src/gui/qt/chattools/chattools.cpp @@ -65,7 +65,15 @@ void ChatTools::receiveMessage(QString playerName, QString message) { QString tempMsg; - if(message.contains(myNick, Qt::CaseInsensitive)) { + if(INET_LOBBY_CHAT && playerName == "(chat bot)" && message.startsWith(myNick)) { + + tempMsg = QString(""+message+""); + //play beep sound only in INET-lobby-chat + if(myLobby->isVisible() && myConfig->readConfigInt("PlayLobbyChatNotification")) { + myLobby->getMyW()->getMySDLPlayer()->playSound("lobbychatnotify",0); + } + } + else if(message.contains(myNick, Qt::CaseInsensitive)) { switch (myChatType) { case INET_LOBBY_CHAT: {