Escape % in the user name
authorManuel Nickschas <sputnick@quassel-irc.org>
Tue, 29 Sep 2009 22:41:22 +0000 (00:41 +0200)
committerManuel Nickschas <sputnick@quassel-irc.org>
Tue, 29 Sep 2009 22:41:22 +0000 (00:41 +0200)
Bitlbee does strange stuff, apparently.

src/uisupport/uistyle.cpp

index 7b62925..05895cd 100644 (file)
@@ -562,6 +562,7 @@ void UiStyle::StyledMessage::style() const {
   QString bufferName = bufferInfo().bufferName();
   bufferName.replace('%', "%%"); // well, you _can_ have a % in a buffername apparently... -_-
   host.replace('%', "%%");       // hostnames too...
+  user.replace('%', "%%");       // and the username.
   const int maxNetsplitNicks = 15;
 
   QString t;