浏览代码

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

Mihawk 12 年之前
父节点
当前提交
d34cab5438
共有 1 个文件被更改,包括 1 次插入1 次删除
  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);