From 13be392af49dc1ef9285102ee47784fca619d89d Mon Sep 17 00:00:00 2001 From: doitux Date: Sun, 5 Sep 2010 16:59:36 +0000 Subject: [PATCH] red bold (chat bot) warn message for concerned player inet lobby --- src/gui/qt/chattools/chattools.cpp | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) 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: {