add /me messages to chattools (thx drull)
This commit is contained in:
@@ -126,7 +126,13 @@ void ChatTools::receiveMessage(QString playerName, QString message) {
|
||||
}
|
||||
|
||||
if(!nickFoundOnIgnoreList) {
|
||||
myTextBrowser->append(playerName + ": " + tempMsg);
|
||||
|
||||
if(message.indexOf(QString("/me"))==0) {
|
||||
myTextBrowser->append(tempMsg.replace("/me","<i>*"+playerName+" ")+"</i>");
|
||||
}
|
||||
else {
|
||||
myTextBrowser->append(playerName + ": " + tempMsg);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user