Do not search for /me, instead search for /me (with spacebar), so that typing things like /media will not activete the /me mode.

This commit is contained in:
lotodore
2010-10-31 14:13:47 +00:00
parent 6754d00db9
commit 4278de6341
+2 -2
View File
@@ -127,8 +127,8 @@ void ChatTools::receiveMessage(QString playerName, QString message) {
if(!nickFoundOnIgnoreList) {
if(message.indexOf(QString("/me"))==0) {
myTextBrowser->append(tempMsg.replace("/me","<i>*"+playerName+" ")+"</i>");
if(message.indexOf(QString("/me "))==0) {
myTextBrowser->append(tempMsg.replace("/me ","<i>*"+playerName+" ")+"</i>");
}
else {
myTextBrowser->append(playerName + ": " + tempMsg);