瀏覽代碼

try including the prefix in the PONG to a client PING, maybe fix #5

tags/v0.1.0
Edmund Huber 9 年之前
父節點
當前提交
846543c180
共有 1 個檔案被更改,包括 2 行新增1 行删除
  1. 2
    1
      irc/reply.go

+ 2
- 1
irc/reply.go 查看文件

152
 }
152
 }
153
 
153
 
154
 func RplPong(client *Client, msg Text) string {
154
 func RplPong(client *Client, msg Text) string {
155
-	return NewStringReply(nil, PONG, "%s :%s", client.server, msg.String())
155
+	// #5: IRC for Android will time out if it doesn't get the prefix back.
156
+	return NewStringReply(client, PONG, "%s :%s", client.server, msg.String())
156
 }
157
 }
157
 
158
 
158
 func RplQuit(client *Client, message Text) string {
159
 func RplQuit(client *Client, message Text) string {

Loading…
取消
儲存