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/command.c

    r787 r803  
    267267} 
    268268 
    269  
    270  
    271269int command_add_hook(char *name, int client, hook_function_t hook, 
    272270        int flags) { 
     
    406404         * is.  Without a distributed privilege understanding we have to 
    407405         * assume positive intent. */ 
    408         if ((cmd->client.flags & COMMAND_FL_OPERATOR && !OPER(cli)) || 
    409                 !BPRIV(cli, cmd->priv)) { 
     406        if ((cmd->client.flags & COMMAND_FL_OPERATOR && 
     407                    !CLIENT_OPERATOR(cli)) || !BPRIV(cli, cmd->priv)) { 
    410408            sendto_one(cli, RPL_FMT(cli, ERR_NOPRIVILEGES)); 
    411409            return ERR_NOPRIVILEGES; 
Note: See TracChangeset for help on using the changeset viewer.