[srvx-commits] CVS: services/src proto-p10.c,1.6,1.7
Brought to you by:
entrope
|
From: Zoot <zo...@us...> - 2002-08-02 00:15:33
|
Update of /cvsroot/srvx/services/src
In directory usw-pr-cvs1:/tmp/cvs-serv15778/src
Modified Files:
proto-p10.c
Log Message:
Handle pings from the uplink (and other servers) properly.
Index: proto-p10.c
===================================================================
RCS file: /cvsroot/srvx/services/src/proto-p10.c,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -r1.6 -r1.7
*** proto-p10.c 8 Jul 2002 15:19:30 -0000 1.6
--- proto-p10.c 2 Aug 2002 00:15:25 -0000 1.7
***************
*** 685,691 ****
static CMD_FUNC(cmd_ping)
{
! if (argc < 3) return 0;
! (void)origin;
! irc_pong(argv[2]);
timeq_del(0, timed_send_ping, 0, TIMEQ_IGNORE_WHEN|TIMEQ_IGNORE_DATA);
timeq_del(0, timed_ping_timeout, 0, TIMEQ_IGNORE_WHEN|TIMEQ_IGNORE_DATA);
--- 685,690 ----
static CMD_FUNC(cmd_ping)
{
! (void)argc;(void)argv;
! irc_pong(origin);
timeq_del(0, timed_send_ping, 0, TIMEQ_IGNORE_WHEN|TIMEQ_IGNORE_DATA);
timeq_del(0, timed_ping_timeout, 0, TIMEQ_IGNORE_WHEN|TIMEQ_IGNORE_DATA);
|