Changeset 803 for trunk/ithildin/modules/ircd/commands/who.c
- Timestamp:
- 05/31/07 15:15:23 (5 years ago)
- File:
-
- 1 edited
-
trunk/ithildin/modules/ircd/commands/who.c (modified) (8 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ithildin/modules/ircd/commands/who.c
r579 r803 212 212 break; 213 213 case 'g': /* gcos field search */ 214 if (! OPER(cli) || oarg >= argc)214 if (!CLIENT_OPERATOR(cli) || oarg >= argc) 215 215 WHO_PARSE_SERROR(argv[0]); 216 216 who_opts.gcos = argv[oarg++]; … … 224 224 break; 225 225 case 'i': /* IP address search */ 226 if (! OPER(cli) || oarg >= argc)226 if (!CLIENT_OPERATOR(cli) || oarg >= argc) 227 227 WHO_PARSE_SERROR(argv[0]); 228 228 who_opts.ip = argv[oarg++]; … … 239 239 s++; 240 240 } 241 if (! OPER(cli)) /* restrict them to only +o */241 if (!CLIENT_OPERATOR(cli)) /* restrict them to only +o */ 242 242 who_opts.usermodes = (who_opts.usermodes & 243 243 ircd.umodes.modes['o'].mask); … … 325 325 static int who_check(client_t *cli, int showall) { 326 326 327 if ( INVIS(cli) && !showall)327 if (CLIENT_INVISIBLE(cli) && !showall) 328 328 return 0; /* can't see them. sneak sneak. */ 329 329 if (who_opts.flags.check_umode) { … … 460 460 continue; /* don't show them */ 461 461 sprintf(status, "%c%s%s", AWAYMSG(cp) != NULL ? 'G' : 'H', 462 OPER(cp) ? "*" : (INVIS(cp) && OPER(cli) ? "%" : ""), 462 CLIENT_OPERATOR(cp) ? "*" : 463 (CLIENT_INVISIBLE(cp) && CLIENT_OPERATOR(cli) ? "%" : ""), 463 464 chanmode_getprefixes(who_opts.channel, cp)); 464 465 sendto_one(cli, RPL_FMT(cli, RPL_WHOREPLY), … … 481 482 if (cp != NULL && who_check(cp, 1)) { 482 483 sprintf(status, "%c%s", AWAYMSG(cp) != NULL ? 'G' : 'H', 483 OPER(cp) ? "*" : (INVIS(cp) && OPER(cli) ? "%" : "")); 484 CLIENT_OPERATOR(cp) ? "*" : 485 (CLIENT_INVISIBLE(cp) && CLIENT_OPERATOR(cli) ? "%" : "")); 484 486 sendto_one(cli, RPL_FMT(cli, RPL_WHOREPLY), 485 487 who_opts.flags.show_chan ? who_first_visible(cli, cp) : … … 509 511 } else { 510 512 sprintf(status, "%c%s%s", AWAYMSG(cp) != NULL ? 'G' : 'H', 511 OPER(cp) ? "*" : (INVIS(cp) && 512 OPER(cli) ? "%" : ""), 513 CLIENT_OPERATOR(cp) ? "*" : 514 (CLIENT_INVISIBLE(cp) && 515 CLIENT_OPERATOR(cli) ? "%" : ""), 513 516 chanmode_getprefixes(who_opts.channel, cp)); 514 517 sendto_one(cli, RPL_FMT(cli, RPL_WHOREPLY), … … 535 538 } else { 536 539 sprintf(status, "%c%s", AWAYMSG(cp) != NULL ? 'G' : 'H', 537 OPER(cp) ? "*" : (INVIS(cp) && OPER(cli) ? "%" : "")); 540 CLIENT_OPERATOR(cp) ? "*" : 541 (CLIENT_INVISIBLE(cp) && 542 CLIENT_OPERATOR(cli) ? "%" : "")); 538 543 sendto_one(cli, RPL_FMT(cli, RPL_WHOREPLY), 539 544 who_opts.flags.show_chan ? who_first_visible(cli, cp) :
Note: See TracChangeset
for help on using the changeset viewer.
