Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • irc.c

    r9c62a7c r7b23afd  
    162162        if( irc->w_watch_source_id > 0 )
    163163                g_source_remove( irc->w_watch_source_id );
    164        
     164        g_io_channel_close( irc->io_channel );
    165165        g_io_channel_unref( irc->io_channel );
    166166        irc_connection_list = g_slist_remove( irc_connection_list, irc );
     
    462462                }
    463463                return( 1 );
    464         }
    465         else if( g_strcasecmp( cmd[0], "QUIT" ) == 0 )
    466         {
    467                 irc_write( irc, "ERROR :%s%s", cmd[1]?"Quit: ":"", cmd[1]?cmd[1]:"Client Quit" );
    468                 g_io_channel_close( irc->io_channel );
    469                 return( 0 );
    470464        }
    471465       
     
    643637                }
    644638        }
     639        else if( g_strcasecmp( cmd[0], "QUIT" ) == 0 )
     640        {
     641                irc_write( irc, "ERROR :%s%s", cmd[1]?"Quit: ":"", cmd[1]?cmd[1]:"Client Quit" );
     642                g_io_channel_close( irc->io_channel );
     643                return( 0 );
     644        }
    645645        else if( g_strcasecmp( cmd[0], "WHO" ) == 0 )
    646646        {
     
    11531153                if( u->gc )
    11541154                        irc_reply( irc, 312, "%s %s.%s :%s network", u->nick, u->gc->user->username,
    1155                                    *u->gc->user->proto_opt[0] ? u->gc->user->proto_opt[0] : "", proto_name[u->gc->user->protocol] );
     1155                                   *u->gc->user->proto_opt[0] ? u->gc->user->proto_opt[0] : "", u->gc->prpl->name );
    11561156                else
    11571157                        irc_reply( irc, 312, "%s %s :%s", u->nick, irc->myhost, IRCD_INFO );
Note: See TracChangeset for help on using the changeset viewer.