Changeset 809 for trunk/ithildin/modules/ircd/protocol.c
- Timestamp:
- 06/11/07 10:09:36 (5 years ago)
- File:
-
- 1 edited
-
trunk/ithildin/modules/ircd/protocol.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
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.
