Jelajahi Sumber

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

Mihawk 12 tahun lalu
induk
melakukan
d34cab5438
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  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);