Browse Source

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

tags/v0.1.0
Edmund Huber 9 years ago
parent
commit
846543c180
1 changed files with 2 additions and 1 deletions
  1. 2
    1
      irc/reply.go

+ 2
- 1
irc/reply.go View File

@@ -152,7 +152,8 @@ func RplPing(target Identifiable) string {
152 152
 }
153 153
 
154 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 159
 func RplQuit(client *Client, message Text) string {

Loading…
Cancel
Save