# HG changeset patch
# User sheepluva
# Date 1319903555 -7200
# Node ID b81199041d8fa69666e1dab050c3dd111cfdc050
# Parent 810b9ced2b671a892a89ba147ec17a76689318ca
html-escape nicknames
diff -r 810b9ced2b67 -r b81199041d8f QTfrontend/ui/widget/chatwidget.cpp
--- a/QTfrontend/ui/widget/chatwidget.cpp Sat Oct 29 16:54:46 2011 +0200
+++ b/QTfrontend/ui/widget/chatwidget.cpp Sat Oct 29 17:52:35 2011 +0200
@@ -502,9 +502,10 @@
{
if (nickname != m_userNick)
return QString("%2").arg(
- QString(nickname.toUtf8().toBase64())).arg(nickname);
- else
- return QString("%1").arg(nickname);
+ QString(nickname.toUtf8().toBase64())).arg(Qt::escape(nickname));
+
+ // unlinked nick (if own one)
+ return QString("%1").arg(Qt::escape(nickname));
}