Changeset 737 for branches/ithildin-1.1
- Timestamp:
- 05/30/06 05:02:34 (6 years ago)
- 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 57 57 CLIENT_COMMAND(whois, 1, 2, 0) { 58 58 client_t *target; 59 char *nick = (argc > 2 ? argv[2] : argv[1]); 59 60 struct chanlink *clp; 60 61 #define WHOISBUFLEN 320 … … 67 68 return COMMAND_WEIGHT_HIGH; 68 69 69 if (argc > 2) 70 target = find_client(argv[2]); 71 else 72 target = find_client(argv[1]); 73 70 target = find_client(nick); 74 71 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; 78 75 } 79 76 -
branches/ithildin-1.1/modules/ircd/commands/whowas.c
r579 r737 54 54 if (target == NULL) { 55 55 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; 57 58 } 58 59
Note: See TracChangeset
for help on using the changeset viewer.
