Changeset 811 for branches


Ignore:
Timestamp:
09/04/07 03:29:58 (5 years ago)
Author:
wd
Message:

Fix long-standing PING bug by doing a special check for (effectively) local
client pings.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/ithildin-1.1/modules/ircd/commands/ping.c

    r579 r811  
    3232    } 
    3333 
    34     /* sp is now set to our destination.  cli is our origin. */ 
     34    /* sp is now set to our destination.  cli is our origin. 
     35     * Note that in the first case we return whatever the client sends in 
     36     * argv[1] since some clients rely on this behavior. */ 
    3537    if (sp == ircd.me) 
    3638        sendto_one_target(cli, NULL, ircd.me, NULL, "PONG", "%s :%s", 
    37                 ircd.me->name, cli->nick); 
     39                ircd.me->name, argv[1]); 
    3840    else 
    3941        sendto_serv_from(sp, cli, NULL, NULL, "PING", "%s :%s", cli->nick, 
     
    5254        return 0; 
    5355 
    54     /* sp is now set to our destination.  cli is our origin. */ 
     56    /* sp is now set to our destination.  srv is our origin. */ 
    5557    if (sp == ircd.me) 
    5658        sendto_serv_from(srv, NULL, ircd.me, NULL, "PONG", "%s :%s", 
Note: See TracChangeset for help on using the changeset viewer.