]> arthur.barton.de Git - ngircd.git/commitdiff
Auth PING: Don't send a prefix in our PING command
authorAlexander Barton <alex@barton.de>
Tue, 20 Jan 2015 21:44:36 +0000 (22:44 +0100)
committerAlexander Barton <alex@barton.de>
Tue, 20 Jan 2015 21:44:36 +0000 (22:44 +0100)
The prefix confuses WeeChat, at least, which doesn't send an appropriate
PONG in the case ...

Debugging and patch by "wowaname" on #ngircd, thanks!

src/ngircd/irc-login.c

index af165cfb364c2b88d4bebe77ce8b094b1a2bf169..7ad1cb7823e6cc81d31191a507bcc9d594a5b671 100644 (file)
@@ -243,7 +243,7 @@ IRC_NICK( CLIENT *Client, REQUEST *Req )
 #else
                                Conn_SetAuthPing(Client_Conn(Client), rand());
 #endif
-                               IRC_WriteStrClient(Client, "PING :%ld",
+                               Conn_WriteStr(Client_Conn(Client), "PING :%ld",
                                        Conn_GetAuthPing(Client_Conn(Client)));
                                LogDebug("Connection %d: sent AUTH PING %ld ...",
                                        Client_Conn(Client),