Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • irc.c

    rc1826c6 rd990997  
    151151}
    152152
    153 void irc_abort( irc_t *irc )
    154 {
    155         irc->status = USTATUS_SHUTDOWN;
    156         if( irc->sendbuffer )
    157         {
    158                 g_source_remove( irc->r_watch_source_id );
    159                 irc->r_watch_source_id = g_timeout_add_full( G_PRIORITY_HIGH, 1000, (GSourceFunc) irc_free, irc, NULL );
    160         }
    161         else
    162         {
    163                 irc_free( irc );
    164         }
    165 }
    166 
    167153static gboolean irc_free_userhash( gpointer key, gpointer value, gpointer data )
    168154{
     
    173159
    174160/* Because we have no garbage collection, this is quite annoying */
    175 void irc_free( irc_t * irc )
     161void irc_free(irc_t * irc)
    176162{
    177163        account_t *account, *accounttmp;
     
    510496        {
    511497                irc_write( irc, "ERROR :%s%s", cmd[1]?"Quit: ":"", cmd[1]?cmd[1]:"Client Quit" );
    512                 /* g_io_channel_close( irc->io_channel ); */
     498                g_io_channel_close( irc->io_channel );
    513499                return( 0 );
    514500        }
     
    11731159                }
    11741160                irc_reply( irc, 376, ":End of MOTD" );
    1175                 closesocket( fd );
     1161                close( fd );
    11761162        }
    11771163}
Note: See TracChangeset for help on using the changeset viewer.