Changeset 804 for trunk/ithildin/modules/ircd/ircd.c
- Timestamp:
- 06/01/07 04:10:37 (5 years ago)
- File:
-
- 1 edited
-
trunk/ithildin/modules/ircd/ircd.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ithildin/modules/ircd/ircd.c
r803 r804 2 2 * ircd.c: the main() type area for the ircd module 3 3 * 4 * Copyright 2002 the Ithildin Project.4 * Copyright 2002-2007 the Ithildin Project. 5 5 * See the COPYING file for more information on licensing and use. 6 6 * … … 19 19 20 20 MODULE_REGISTER(IRCD_VERSION); 21 /* 22 @DEPENDENCIES@: dns ident 23 */ 24 21 22 const 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. */ 33 const 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 25 45 HOOK_FUNCTION(ircd_reload_hook); 26 46 HOOK_FUNCTION(ircd_loadmodule_hook); … … 153 173 char *s = (char *)data; 154 174 155 if (match("ircd /protocols/*", s)) {156 s = strrchr(s, ' /');175 if (match("ircd.protocol.*", s)) { 176 s = strrchr(s, '.'); 157 177 s++; 158 178 if (ep == me.events.load_module) … … 160 180 else if (ep == me.events.unload_module) 161 181 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, '.'); 164 184 s++; 165 185
Note: See TracChangeset
for help on using the changeset viewer.
