Bladeren bron

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

tags/v0.1.0
Edmund Huber 9 jaren geleden
bovenliggende
commit
846543c180
1 gewijzigde bestanden met toevoegingen van 2 en 1 verwijderingen
  1. 2
    1
      irc/reply.go

+ 2
- 1
irc/reply.go Bestand weergeven

@@ -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 {

Laden…
Annuleren
Opslaan