Ignore:
Timestamp:
06/11/07 10:09:36 (5 years ago)
Author:
wd
Message:

Make the ircd run/take connections properly (there were a handful of bugs in
different places).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ithildin/modules/ircd/protocol.c

    r808 r809  
    180180 
    181181    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)) { 
    183184        log_error("unable to load module for protocol %s", name); 
    184185        return 0; 
     
    206207    uint64_t *i64p; 
    207208 
    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    } 
    210216 
    211217    log_debug("updating protocol %s", pp->name); 
Note: See TracChangeset for help on using the changeset viewer.