File: 03-ping.dpatch

package info (click to toggle)
ngircd 0.10.0-2etch1
  • links: PTS
  • area: main
  • in suites: etch
  • size: 1,728 kB
  • ctags: 1,006
  • sloc: ansic: 12,476; sh: 3,837; makefile: 355
file content (17 lines) | stat: -rw-r--r-- 744 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#! /bin/sh /usr/share/dpatch/dpatch-run
## 03-unnamed.dpatch by Mario Iseli <admin@marioiseli.com>
##
## DP: Fixes the problem with the ping answer.

@DPATCH@

diff -Naur ngircd-0.9.2.orig/src/ngircd/irc-login.c ngircd-0.9.2/src/ngircd/irc-login.c
--- ngircd-0.9.2.orig/src/ngircd/irc-login.c	2005-06-04 14:32:09.000000000 +0200
+++ ngircd-0.9.2/src/ngircd/irc-login.c	2005-12-14 22:49:28.000000000 +0100
@@ -456,7 +456,7 @@
 	}
 
 	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 ));
+	return IRC_WriteStrClient(Client, "PONG %s :%s", Client_ID( Client_ThisServer( )), Req->argv[0]);
 } /* IRC_PING */