# HG changeset patch
# User sheepluva
# Date 1319785925 -7200
# Node ID f3ac3e51418b2942acfa2cc974b5f5455c319242
# Parent 39782c4d9246fd8125bc3aa10aeb4c14fd690e79
chat: don't link own name
diff -r 39782c4d9246 -r f3ac3e51418b QTfrontend/ui/widget/chatwidget.cpp
--- a/QTfrontend/ui/widget/chatwidget.cpp Fri Oct 28 03:41:52 2011 +0200
+++ b/QTfrontend/ui/widget/chatwidget.cpp Fri Oct 28 09:12:05 2011 +0200
@@ -479,7 +479,12 @@
// "link" nick, but before that encode it in base64 to make sure it can't intefere with html/url syntax
// the nick is put as querystring as putting it as host would convert it to it's lower case variant
if(!nick.isEmpty())
- formattedStr.replace("|nick|",QString("%2").arg(QString(nick.toUtf8().toBase64())).arg(nick));
+ {
+ if (nick != m_userNick)
+ formattedStr.replace("|nick|",QString("%2").arg(QString(nick.toUtf8().toBase64())).arg(nick));
+ else
+ formattedStr.replace("|nick|", QString("%1").arg(nick));
+ }
QString cssClass("msg_UserChat");