Ignore:
Timestamp:
05/31/07 15:15:23 (5 years ago)
Author:
wd
Message:

Many more changes:

  • Moved the 'core' addon code into various places in the main ircd module.
  • Split channel/user modes out of channel.c/client.c and into chanmode.c/usermode.c respectively.
  • Added init/teardown routines for channel/usermodes.
  • Changed the INVIS and OPER macros to have longer(:/) and more descriptive names.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ithildin/modules/ircd/commands/xinfo.c

    r787 r803  
    135135    if (xhp->flags & XINFO_HANDLER_LOCAL && !MYCLIENT(cli)) 
    136136        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)) || 
    138138            !BPRIV(cli, xhp->priv)) { 
    139139        sendto_one(cli, RPL_FMT(cli, ERR_NOPRIVILEGES)); 
     
    399399            sendto_one(cli, RPL_FMT(cli, RPL_XINFO), "UPTIME",  
    400400                    time_conv_str(me.now - me.started)); 
    401         } else if (sp->conn != NULL && OPER(cli)) { 
     401        } else if (sp->conn != NULL && CLIENT_OPERATOR(cli)) { 
    402402            sendto_one(cli, RPL_FMT(cli, RPL_XINFO), "CONNECTED", 
    403403                    int_conv_str(sp->conn->signon)); 
     
    408408    /* I'm restricting info about server connects to operators.  I'm not sure 
    409409     * what else would be amicable. */ 
    410     if (OPER(cli) && scp != NULL) { 
     410    if (CLIENT_OPERATOR(cli) && scp != NULL) { 
    411411        sent++; 
    412412        snprintf(rpl, XINFO_LEN, "ADDRESS %s PORT %s LAST %d INTERVAL %s", 
     
    419419    /* last, but not least, report on interesting configuration bits about the 
    420420     * server, if it has interesting configuration bits. */ 
    421     if (OPER(cli) && clp != NULL) { 
     421    if (CLIENT_OPERATOR(cli) && clp != NULL) { 
    422422        char *s; 
    423423        if (sp == NULL && (s = conf_find_entry("protocol", clp, 1)) != NULL) 
     
    440440        if (xhp->flags & XINFO_HANDLER_LOCAL && !MYCLIENT(cli)) 
    441441            continue; /* non-local */ 
    442         if ((xhp->flags & XINFO_HANDLER_OPER && !OPER(cli)) || 
     442        if ((xhp->flags & XINFO_HANDLER_OPER && !CLIENT_OPERATOR(cli)) || 
    443443                !BPRIV(cli, xhp->priv)) 
    444444            continue; /* not privileged */ 
Note: See TracChangeset for help on using the changeset viewer.