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:
1 parent
6754d00db9
commit
4278de6341
1 file changed
+2
-2
@@ -127,8 +127,8 @@ void ChatTools::receiveMessage(QString playerName, QString message) {
|
|||||||
|
|
||||||
if(!nickFoundOnIgnoreList) {
|
if(!nickFoundOnIgnoreList) {
|
||||||
|
|
||||||
if(message.indexOf(QString("/me"))==0) {
|
if(message.indexOf(QString("/me "))==0) {
|
||||||
myTextBrowser->append(tempMsg.replace("/me","<i>*"+playerName+" ")+"</i>");
|
myTextBrowser->append(tempMsg.replace("/me ","<i>*"+playerName+" ")+"</i>");
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
myTextBrowser->append(playerName + ": " + tempMsg);
|
myTextBrowser->append(playerName + ": " + tempMsg);
|
||||||
|
|||||||
Reference in new issue
Block a user