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