1
0

03-ping.dpatch 744 B

1234567891011121314151617
  1. #! /bin/sh /usr/share/dpatch/dpatch-run
  2. ## 03-unnamed.dpatch by Mario Iseli <admin@marioiseli.com>
  3. ##
  4. ## DP: Fixes the problem with the ping answer.
  5. @DPATCH@
  6. diff -Naur ngircd-0.9.2.orig/src/ngircd/irc-login.c ngircd-0.9.2/src/ngircd/irc-login.c
  7. --- ngircd-0.9.2.orig/src/ngircd/irc-login.c 2005-06-04 14:32:09.000000000 +0200
  8. +++ ngircd-0.9.2/src/ngircd/irc-login.c 2005-12-14 22:49:28.000000000 +0100
  9. @@ -456,7 +456,7 @@
  10. }
  11. Log( LOG_DEBUG, "Connection %d: got PING, sending PONG ...", Client_Conn( Client ));
  12. - return IRC_WriteStrClient( Client, "PONG %s :%s", Client_ID( Client_ThisServer( )), Client_ID( Client ));
  13. + return IRC_WriteStrClient(Client, "PONG %s :%s", Client_ID( Client_ThisServer( )), Req->argv[0]);
  14. } /* IRC_PING */