Changeset 809
- Timestamp:
- 06/11/07 10:09:36 (5 years ago)
- Location:
- trunk/ithildin
- Files:
-
- 4 edited
-
lib/event.c (modified) (2 diffs)
-
lib/module.c (modified) (1 diff)
-
modules/ircd/ircd.c (modified) (2 diffs)
-
modules/ircd/protocol.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ithildin/lib/event.c
r787 r809 33 33 event_t *ep = NULL; 34 34 35 ep = malloc(sizeof(event_t));35 ep = calloc(sizeof(event_t), 1); 36 36 ep->numhooks = 0; 37 37 ep->flags = flags; … … 65 65 else 66 66 returned = hookreturns; 67 SLIST_FOREACH(hp, &ep->hooks, lp) {67 SLIST_FOREACH(hp, &ep->hooks, lp) { 68 68 if (hp->flags & (HOOK_FL_DEFERRED | HOOK_FL_NEW)) { 69 69 needclean = true; -
trunk/ithildin/lib/module.c
r808 r809 250 250 } 251 251 252 sn = strrchr(m->name, ' /');252 sn = strrchr(m->name, '.'); 253 253 if (sn == NULL) 254 254 sn = m->name; -
trunk/ithildin/modules/ircd/ircd.c
r808 r809 93 93 connection_set_unregistered(cp); 94 94 /* there is no connection timeout for fresh connections */ 95 cp = cp2; 95 96 } 96 97 … … 434 435 435 436 if (!get_module_savedata(savelist, "ircd.hashes", &ircd.hashes)) { 436 437 437 ircd.hashes.command = create_hash_table(32, 438 438 offsetof(struct command, name), COMMAND_MAXLEN, -
trunk/ithildin/modules/ircd/protocol.c
r808 r809 180 180 181 181 sprintf(mname, "ircd.protocol.%s", name); 182 if (!load_module(mname, MODULE_FL_CREATE|MODULE_FL_QUIET)) { 182 if (find_module(mname) == NULL && 183 !load_module(mname, MODULE_FL_CREATE|MODULE_FL_QUIET)) { 183 184 log_error("unable to load module for protocol %s", name); 184 185 return 0; … … 206 207 uint64_t *i64p; 207 208 208 if (pp == NULL) 209 return; 209 /* if it it doesn't exist, try to add it */ 210 if (pp == NULL) { 211 if (!add_protocol(name)) 212 return; 213 else 214 pp = find_protocol(name); 215 } 210 216 211 217 log_debug("updating protocol %s", pp->name);
Note: See TracChangeset
for help on using the changeset viewer.
