]> arthur.barton.de Git - ngircd.git/commitdiff
Return PING argument in PONG reply if STRICT_RFC is not defined [from HEAD].
authorAlexander Barton <alex@barton.de>
Thu, 15 Dec 2005 11:01:59 +0000 (11:01 +0000)
committerAlexander Barton <alex@barton.de>
Thu, 15 Dec 2005 11:01:59 +0000 (11:01 +0000)
Fixes Debian Bug #343200.

src/ngircd/irc-login.c

index db04a9c33140e51c169d2f6e25c10ebb085d55e0..72065427c732634ad59306b94f13227e2f1eb483 100644 (file)
@@ -14,7 +14,7 @@
 
 #include "portab.h"
 
-static char UNUSED id[] = "$Id: irc-login.c,v 1.44 2005/06/04 12:32:09 fw Exp $";
+static char UNUSED id[] = "$Id: irc-login.c,v 1.44.2.1 2005/12/15 11:01:59 alex Exp $";
 
 #include "imp.h"
 #include <assert.h>
@@ -456,7 +456,15 @@ IRC_PING( CLIENT *Client, REQUEST *Req )
        }
 
        Log( LOG_DEBUG, "Connection %d: got PING, sending PONG ...", Client_Conn( Client ));
-       return IRC_WriteStrClient( Client, "PONG %s :%s", Client_ID( Client_ThisServer( )), Client_ID( Client ));
+#ifdef STRICT_RFC
+       return IRC_WriteStrClient(Client, "PONG %s :%s",
+               Client_ID(Client_ThisServer()), Client_ID(Client));
+#else
+       /* Some clients depend on the argument being returned in the PONG
+        * reply (not mentioned in any RFC, though) */
+       return IRC_WriteStrClient(Client, "PONG %s :%s",
+               Client_ID(Client_ThisServer( )), Req->argv[0]);
+#endif 
 } /* IRC_PING */