implement: Option to disable emoticons in the chat (#172)

This commit is contained in:
doitux
2013-07-01 10:29:07 +02:00
parent f211e31acf
commit 8264a61692
5 changed files with 207 additions and 163 deletions
+3 -1
View File
@@ -167,7 +167,9 @@ void ChatTools::receiveMessage(QString playerName, QString message, bool pm)
if(!nickFoundOnIgnoreList) {
tempMsg = checkForEmotes(tempMsg);
if(!myConfig->readConfigInt("DisableChatEmoticons")) {
tempMsg = checkForEmotes(tempMsg);
}
if(message.indexOf(QString("/me "))==0) {
myTextBrowser->append(tempMsg.replace("/me ","<i>*"+playerName+" ")+"</i>");