diff options
| author | Jelmer Vernooij <jelmer@samba.org> | 2005-11-15 14:20:27 +0100 | 
|---|---|---|
| committer | Jelmer Vernooij <jelmer@samba.org> | 2005-11-15 14:20:27 +0100 | 
| commit | b135438c4c6aeb5a7cd3403f0cf37e741d589cd3 (patch) | |
| tree | b8c7f4be32ccddea2e1aec4898e6b9f8d9c080d4 /irc.c | |
| parent | f7f3ada3350c2a0a99ed307350a230583802cfe0 (diff) | |
| parent | c1ede6e8035b0338e0254fbfcbbddfeb608b1269 (diff) | |
Merge changes from Wilmer
Diffstat (limited to 'irc.c')
| -rw-r--r-- | irc.c | 14 | 
1 files changed, 7 insertions, 7 deletions
| @@ -161,7 +161,7 @@ void irc_free(irc_t * irc)  	g_source_remove( irc->r_watch_source_id );  	if( irc->w_watch_source_id > 0 )  		g_source_remove( irc->w_watch_source_id ); -	g_io_channel_close( irc->io_channel ); +	  	g_io_channel_unref( irc->io_channel );  	irc_connection_list = g_slist_remove( irc_connection_list, irc ); @@ -462,6 +462,12 @@ int irc_exec( irc_t *irc, char **cmd )  		}  		return( 1 );  	} +	else if( g_strcasecmp( cmd[0], "QUIT" ) == 0 ) +	{ +		irc_write( irc, "ERROR :%s%s", cmd[1]?"Quit: ":"", cmd[1]?cmd[1]:"Client Quit" ); +		g_io_channel_close( irc->io_channel ); +		return( 0 ); +	}  	if( !irc->user || !irc->nick )  	{ @@ -636,12 +642,6 @@ int irc_exec( irc_t *irc, char **cmd )  			irc_send( irc, cmd[1], cmd[2], ( g_strcasecmp( cmd[0], "NOTICE" ) == 0 ) ? IM_FLAG_AWAY : 0 );  		}  	} -	else if( g_strcasecmp( cmd[0], "QUIT" ) == 0 ) -	{ -		irc_write( irc, "ERROR :%s%s", cmd[1]?"Quit: ":"", cmd[1]?cmd[1]:"Client Quit" ); -		g_io_channel_close( irc->io_channel ); -		return( 0 ); -	}  	else if( g_strcasecmp( cmd[0], "WHO" ) == 0 )  	{  		irc_who( irc, cmd[1] ); | 
