Ignore:
Timestamp:
02/12/07 05:52:32 (5 years ago)
Author:
wd
Message:

Get the base/existing IRC module compiling again. Clear out old junk.

File:
1 edited

Legend:

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

    r787 r801  
    3232    char *s; 
    3333 
    34     if (!(cp->flags & IRCD_CONNFL_STAGE2)) { /* initialize the connection */ 
     34    if (cp->buf == NULL || cp->bufsize == 0) { 
     35        /* initialize the connection */ 
    3536        cp->buf = malloc(DEFAULT_BUFFER_SIZE); 
    3637        cp->buflen = 0; 
    3738        cp->bufsize = DEFAULT_BUFFER_SIZE; 
    38         cp->flags |= IRCD_CONNFL_STAGE2; 
    3939        cp->buf[0] = '\0'; 
    4040    } 
     
    252252        return; /* don't do this here.. */ 
    253253 
    254     cp = LIST_FIRST(ircd.connections.stage1); 
     254    cp = LIST_FIRST(ircd.connections.connected); 
    255255    while (cp != NULL) { 
    256256        cp2 = LIST_NEXT(cp, lp); 
     
    259259        cp = cp2; 
    260260    } 
    261     cp = LIST_FIRST(ircd.connections.stage2); 
     261    cp = LIST_FIRST(ircd.connections.unregistered); 
    262262    while (cp != NULL) { 
    263263        cp2 = LIST_NEXT(cp, lp); 
Note: See TracChangeset for help on using the changeset viewer.