diff options
| author | Wilmer van der Gaast <wilmer@gaast.net> | 2010-05-08 15:12:32 +0100 | 
|---|---|---|
| committer | Wilmer van der Gaast <wilmer@gaast.net> | 2010-05-08 15:12:32 +0100 | 
| commit | fd45e1d1d63761a0bf18c7ad885d72acd6367746 (patch) | |
| tree | c1efe00a081d3c4ec85c5679bd809d2a2d7a1ab7 /irc_im.c | |
| parent | b0364dc3b881e4b5e9afd1ff62d5b3cc792a87ca (diff) | |
Always show normal contacts in &bitlbee, not just the first channel in the
list.
Diffstat (limited to 'irc_im.c')
| -rw-r--r-- | irc_im.c | 5 | 
1 files changed, 3 insertions, 2 deletions
@@ -80,7 +80,7 @@ static gboolean bee_irc_user_status( bee_t *bee, bee_user_t *bu, bee_user_t *old  {  	irc_t *irc = bee->ui_data;  	irc_user_t *iu = bu->ui_data; -	irc_channel_t *ic = irc->channels->data; /* For now, just pick the first channel. */ +	irc_channel_t *ic = irc->default_channel;  	/* Do this outside the if below since away state can change without  	   the online state changing. */ @@ -118,7 +118,7 @@ static gboolean bee_irc_user_status( bee_t *bee, bee_user_t *bu, bee_user_t *old  static gboolean bee_irc_user_msg( bee_t *bee, bee_user_t *bu, const char *msg, time_t sent_at )  {  	irc_t *irc = bee->ui_data; -	irc_channel_t *ic = irc->channels->data; +	irc_channel_t *ic = irc->default_channel;  	irc_user_t *iu = (irc_user_t *) bu->ui_data;  	char *dst, *prefix = NULL;  	char *wrapped, *ts = NULL; @@ -409,6 +409,7 @@ static gboolean bee_irc_channel_chat_part( irc_channel_t *ic, const char *msg )  static gboolean bee_irc_channel_chat_topic( irc_channel_t *ic, const char *new )  { +	return TRUE;  }  static const struct irc_channel_funcs irc_channel_im_chat_funcs = {  | 
