Changeset 737 for branches/ithildin-1.1


Ignore:
Timestamp:
05/30/06 05:02:34 (6 years ago)
Author:
wd
Message:

Fix bug #38.

Location:
branches/ithildin-1.1/modules/ircd/commands
Files:
2 edited

Legend:

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

    r579 r737  
    5757CLIENT_COMMAND(whois, 1, 2, 0) { 
    5858    client_t *target; 
     59    char *nick = (argc > 2 ? argv[2] : argv[1]); 
    5960    struct chanlink *clp; 
    6061#define WHOISBUFLEN 320 
     
    6768        return COMMAND_WEIGHT_HIGH; 
    6869 
    69     if (argc > 2) 
    70         target = find_client(argv[2]); 
    71     else 
    72         target = find_client(argv[1]); 
    73  
     70    target = find_client(nick); 
    7471    if (target == NULL) { 
    75         sendto_one(cli, RPL_FMT(cli, ERR_NOSUCHNICK), 
    76                 (argc > 2 ? argv[2] : argv[1])); 
    77         return COMMAND_WEIGHT_NONE; 
     72        sendto_one(cli, RPL_FMT(cli, ERR_NOSUCHNICK), nick); 
     73        sendto_one(cli, RPL_FMT(cli, RPL_ENDOFWHOIS), nick); 
     74        return COMMAND_WEIGHT_LOW; 
    7875    } 
    7976 
  • branches/ithildin-1.1/modules/ircd/commands/whowas.c

    r579 r737  
    5454    if (target == NULL) { 
    5555        sendto_one(cli, RPL_FMT(cli, ERR_WASNOSUCHNICK), argv[1]); 
    56         return COMMAND_WEIGHT_NONE; 
     56        sendto_one(cli, RPL_FMT(cli, RPL_ENDOFWHOWAS), argv[1]); 
     57        return COMMAND_WEIGHT_LOW; 
    5758    } 
    5859 
Note: See TracChangeset for help on using the changeset viewer.