Ignore:
Timestamp:
06/01/07 04:10:37 (5 years ago)
Author:
wd
Message:

Mid-stage commit. Move to new dependencies system for addons/commands.
Created area for suermode/channelmode 'addons' to be placed in.

File:
1 edited

Legend:

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

    r579 r804  
    66 */ 
    77 
    8 #include <ithildin/stand.h> 
     8#include <ithildin/ithildin.h> 
    99 
    1010#include "ircd.h" 
     
    1414 
    1515MODULE_REGISTER("$Rev$"); 
    16 /* 
    17 @DEPENDENCIES@: ircd 
    18 @DEPENDENCIES@: ircd/addons/core 
    19 */ 
     16const char *mdepends[] = MDEPENDS; 
    2017 
    2118/* this command may be used by operators to load, unload, or reload modules 
     
    5047        while (*s != '\0') { 
    5148            if (*s == '-') 
    52                 *s = '/'; 
     49                *s = '.'; 
    5350            s++; 
    5451        } 
     
    6562        sprintf(mname, "%s", argc > 3 ? argv[3] : "*"); 
    6663    else 
    67         sprintf(mname, "%s/%s", type, (argc > 3 ? argv[3] : "*")); 
     64        sprintf(mname, "%s.%s", type, (argc > 3 ? argv[3] : "*")); 
    6865 
    6966    /* depending on what they asked for, we do different things.  the one 
     
    9289                    !strcasecmp(mp->name, "ident") || 
    9390                    !strcasecmp(mp->name, "ircd") || 
    94                     !strcasecmp(mp->name, "ircd/commands/module"))) { 
     91                    !strcasecmp(mp->name, "ircd.commands.module"))) { 
    9592            sendto_one(cli, "NOTICE", ":You cannot unload the %s module", 
    9693                    mp->name); 
Note: See TracChangeset for help on using the changeset viewer.