Procházet zdrojové kódy

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

tags/v0.1.0
Edmund Huber před 9 roky
rodič
revize
846543c180
1 změnil soubory, kde provedl 2 přidání a 1 odebrání
  1. 2
    1
      irc/reply.go

+ 2
- 1
irc/reply.go Zobrazit soubor

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

Načítá se…
Zrušit
Uložit