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:
@@ -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