red bold (chat bot) warn message for concerned player inet lobby

This commit is contained in:
doitux
2010-09-05 16:59:36 +00:00
parent bf3d0627fb
commit 13be392af4
+9 -1
View File
@@ -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("<span style=\"font-weight:bold; color:red;\">"+message+"</span>");
//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: {