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

    r803 r804  
    22 * ircd.c: the main() type area for the ircd module 
    33 *  
    4  * Copyright 2002 the Ithildin Project. 
     4 * Copyright 2002-2007 the Ithildin Project. 
    55 * See the COPYING file for more information on licensing and use. 
    66 *  
     
    1919 
    2020MODULE_REGISTER(IRCD_VERSION); 
    21 /* 
    22 @DEPENDENCIES@: dns ident 
    23 */ 
    24  
     21 
     22const char *mdepends[] = { 
     23#ifdef WITH_DNS_MODULE 
     24    "dns", 
     25#endif 
     26#ifdef WITH_IDENT_MODULE 
     27    "ident", 
     28#endif 
     29    NULL 
     30}; 
     31 
     32/* we "soft depend" on a bunch of the base commands and a base protocol.  */ 
     33const char *mpostdepends[] = { 
     34    "ircd.protocol.rfc1459", 
     35    "ircd.command.error",   "ircd.command.join", 
     36    "ircd.command.kick",    "ircd.command.kill", 
     37    "ircd.command.mode",    "ircd.command.nick", 
     38    "ircd.command.part",    "ircd.command.ping", 
     39    "ircd.command.pong",    "ircd.command.quit", 
     40    "ircd.command.server",  "ircd.command.sjoin", 
     41    "ircd.command.squit", 
     42    NULL 
     43}; 
     44     
    2545HOOK_FUNCTION(ircd_reload_hook); 
    2646HOOK_FUNCTION(ircd_loadmodule_hook); 
     
    153173    char *s = (char *)data; 
    154174 
    155     if (match("ircd/protocols/*", s)) { 
    156         s = strrchr(s, '/'); 
     175    if (match("ircd.protocol.*", s)) { 
     176        s = strrchr(s, '.'); 
    157177        s++; 
    158178        if (ep == me.events.load_module) 
     
    160180        else if (ep == me.events.unload_module) 
    161181            remove_protocol(s); 
    162     } else if (match("ircd/commands/*", s)) { 
    163         s = strrchr(s, '/'); 
     182    } else if (match("ircd.command.*", s)) { 
     183        s = strrchr(s, '.'); 
    164184        s++; 
    165185 
Note: See TracChangeset for help on using the changeset viewer.