Parcourir la source

fixed s-p not being sent when there was a space on the nickname

Mihawk il y a 12 ans
Parent
commit
d34cab5438
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      Client.cpp

+ 1 - 1
Client.cpp

@@ -70,7 +70,7 @@ void Client::say(const QString &msg, const QString &nickName)
   QString cmd("say ");
 
   if(!nickName.isEmpty() && mySupportsSendPrivate)
-    cmd.append("s-p " + nickName + " ");
+    cmd.append("s-p \"" + nickName + "\" ");
 
   cmd.append(msg);