Escape % in hostnames
authorManuel Nickschas <sputnick@quassel-irc.org>
Tue, 15 Sep 2009 08:48:07 +0000 (10:48 +0200)
committerManuel Nickschas <sputnick@quassel-irc.org>
Tue, 15 Sep 2009 08:48:07 +0000 (10:48 +0200)
src/uisupport/uistyle.cpp

index e81f907..b74e1b7 100644 (file)
@@ -552,6 +552,7 @@ void UiStyle::StyledMessage::style() const {
   QString txt = UiStyle::mircToInternal(contents());
   QString bufferName = bufferInfo().bufferName();
   bufferName.replace('%', "%%"); // well, you _can_ have a % in a buffername apparently... -_-
+  host.replace('%', "%%");       // hostnames too...
   const int maxNetsplitNicks = 15;
 
   QString t;