diff options
| author | Wilmer van der Gaast <wilmer@gaast.net> | 2010-08-14 14:44:35 +0100 | 
|---|---|---|
| committer | Wilmer van der Gaast <wilmer@gaast.net> | 2010-08-14 14:44:35 +0100 | 
| commit | 07874bef9e9c4e6ace44e4d0605ce1aec89cad74 (patch) | |
| tree | c2a0a0bc30f2fcec7af83b2fb3fe59bbec393116 /irc_im.c | |
| parent | 584867592546f43f857645e02169d135f0df25e8 (diff) | |
| parent | 136c2bb632715ab83710c93c7b339c5cca7d2679 (diff) | |
Merge mainline stuff.
Diffstat (limited to 'irc_im.c')
| -rw-r--r-- | irc_im.c | 16 | 
1 files changed, 2 insertions, 14 deletions
| @@ -140,9 +140,7 @@ static gboolean bee_irc_user_status( bee_t *bee, bee_user_t *bu, bee_user_t *old  void bee_irc_channel_update( irc_t *irc, irc_channel_t *ic, irc_user_t *iu )  { -	struct irc_control_channel *icc;  	GSList *l; -	gboolean match = FALSE;  	if( ic == NULL )  	{ @@ -167,23 +165,13 @@ void bee_irc_channel_update( irc_t *irc, irc_channel_t *ic, irc_user_t *iu )  		return;  	} -	icc = ic->data; -	 -	if( icc->type == IRC_CC_TYPE_DEFAULT ) -		match = TRUE; -	else if( icc->type == IRC_CC_TYPE_GROUP ) -		match = iu->bu->group == icc->group; -	else if( icc->type == IRC_CC_TYPE_ACCOUNT ) -		match = iu->bu->ic->acc == icc->account; -	else if( icc->type == IRC_CC_TYPE_PROTOCOL ) -		match = iu->bu->ic->acc->prpl == icc->protocol; -	 -	if( !match ) +	if( !irc_channel_wants_user( ic, iu ) )  	{  		irc_channel_del_user( ic, iu, IRC_CDU_PART, NULL );  	}  	else  	{ +		struct irc_control_channel *icc = ic->data;  		int mode = 0;  		if( !( iu->bu->flags & BEE_USER_ONLINE ) ) | 
