Changeset 803 for trunk/ithildin/modules/ircd/commands/xinfo.c
- Timestamp:
- 05/31/07 15:15:23 (5 years ago)
- File:
-
- 1 edited
-
trunk/ithildin/modules/ircd/commands/xinfo.c (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ithildin/modules/ircd/commands/xinfo.c
r787 r803 135 135 if (xhp->flags & XINFO_HANDLER_LOCAL && !MYCLIENT(cli)) 136 136 return COMMAND_WEIGHT_LOW; /* silently ignore these */ 137 if ((xhp->flags & XINFO_HANDLER_OPER && ! OPER(cli)) ||137 if ((xhp->flags & XINFO_HANDLER_OPER && !CLIENT_OPERATOR(cli)) || 138 138 !BPRIV(cli, xhp->priv)) { 139 139 sendto_one(cli, RPL_FMT(cli, ERR_NOPRIVILEGES)); … … 399 399 sendto_one(cli, RPL_FMT(cli, RPL_XINFO), "UPTIME", 400 400 time_conv_str(me.now - me.started)); 401 } else if (sp->conn != NULL && OPER(cli)) {401 } else if (sp->conn != NULL && CLIENT_OPERATOR(cli)) { 402 402 sendto_one(cli, RPL_FMT(cli, RPL_XINFO), "CONNECTED", 403 403 int_conv_str(sp->conn->signon)); … … 408 408 /* I'm restricting info about server connects to operators. I'm not sure 409 409 * what else would be amicable. */ 410 if ( OPER(cli) && scp != NULL) {410 if (CLIENT_OPERATOR(cli) && scp != NULL) { 411 411 sent++; 412 412 snprintf(rpl, XINFO_LEN, "ADDRESS %s PORT %s LAST %d INTERVAL %s", … … 419 419 /* last, but not least, report on interesting configuration bits about the 420 420 * server, if it has interesting configuration bits. */ 421 if ( OPER(cli) && clp != NULL) {421 if (CLIENT_OPERATOR(cli) && clp != NULL) { 422 422 char *s; 423 423 if (sp == NULL && (s = conf_find_entry("protocol", clp, 1)) != NULL) … … 440 440 if (xhp->flags & XINFO_HANDLER_LOCAL && !MYCLIENT(cli)) 441 441 continue; /* non-local */ 442 if ((xhp->flags & XINFO_HANDLER_OPER && ! OPER(cli)) ||442 if ((xhp->flags & XINFO_HANDLER_OPER && !CLIENT_OPERATOR(cli)) || 443 443 !BPRIV(cli, xhp->priv)) 444 444 continue; /* not privileged */
Note: See TracChangeset
for help on using the changeset viewer.
