summaryrefslogtreecommitdiff
path: root/src/gui/widgets/chattab.cpp
diff options
context:
space:
mode:
authorDavid Athay <ko2fan@gmail.com>2009-04-13 14:48:07 +0100
committerDavid Athay <ko2fan@gmail.com>2009-04-13 14:48:07 +0100
commiteffc112bed400d632368ca633d8a6600ea8c8aae (patch)
tree794f9d826e2bc3a3df6ac0796856e7d6bb8f6b17 /src/gui/widgets/chattab.cpp
parentd8e3acb5253eb01231136b131e5b156034aaa7a9 (diff)
downloadmana-effc112bed400d632368ca633d8a6600ea8c8aae.tar.gz
mana-effc112bed400d632368ca633d8a6600ea8c8aae.tar.bz2
mana-effc112bed400d632368ca633d8a6600ea8c8aae.tar.xz
mana-effc112bed400d632368ca633d8a6600ea8c8aae.zip
Fixed @'s in a user's nick
Diffstat (limited to 'src/gui/widgets/chattab.cpp')
-rw-r--r--src/gui/widgets/chattab.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gui/widgets/chattab.cpp b/src/gui/widgets/chattab.cpp
index 1879a918..bbf71e83 100644
--- a/src/gui/widgets/chattab.cpp
+++ b/src/gui/widgets/chattab.cpp
@@ -163,6 +163,9 @@ void ChatTab::chatLog(std::string line, int own, bool ignoreRecord)
tmp.nick = "";
lineColor = "##S";
}
+
+ // check for @, # or [ in nick
+ tmp.nick = removeBadChars(tmp.nick);
#ifdef EATHENA_SUPPORT
if (tmp.nick.empty() && tmp.text.substr(0, 17) == "Visible GM status")