aboutsummaryrefslogtreecommitdiffstats
path: root/protocols
diff options
context:
space:
mode:
authorWilmer van der Gaast <wilmer@gaast.net>2010-06-05 01:35:17 +0100
committerWilmer van der Gaast <wilmer@gaast.net>2010-06-05 01:35:17 +0100
commit7e83e8e47ff1ba031928e1e46bf16ec53ca53117 (patch)
tree5dfc12faaba5f53f254154de4f49aeb8c71275b3 /protocols
parent2b8473c72b730085c8d6aef3df8fef55c7002080 (diff)
Inform the UI about group changes. This is important if the user has
group channels.
Diffstat (limited to 'protocols')
-rw-r--r--protocols/bee.h1
-rw-r--r--protocols/nogaim.c3
2 files changed, 4 insertions, 0 deletions
diff --git a/protocols/bee.h b/protocols/bee.h
index e421db57..5701ea60 100644
--- a/protocols/bee.h
+++ b/protocols/bee.h
@@ -82,6 +82,7 @@ typedef struct bee_ui_funcs
gboolean (*user_new)( bee_t *bee, struct bee_user *bu );
gboolean (*user_free)( bee_t *bee, struct bee_user *bu );
gboolean (*user_fullname)( bee_t *bee, bee_user_t *bu );
+ gboolean (*user_group)( bee_t *bee, bee_user_t *bu );
gboolean (*user_status)( bee_t *bee, struct bee_user *bu, struct bee_user *old );
gboolean (*user_msg)( bee_t *bee, bee_user_t *bu, const char *msg, time_t sent_at );
gboolean (*user_typing)( bee_t *bee, bee_user_t *bu, guint32 flags );
diff --git a/protocols/nogaim.c b/protocols/nogaim.c
index 00fe0ebf..df97393d 100644
--- a/protocols/nogaim.c
+++ b/protocols/nogaim.c
@@ -378,6 +378,9 @@ void imcb_add_buddy( struct im_connection *ic, const char *handle, const char *g
bu = bee_user_new( bee, ic, handle, 0 );
bu->group = bee_group_by_name( bee, group, TRUE );
+
+ if( bee->ui->user_group )
+ bee->ui->user_group( bee, bu );
}
void imcb_rename_buddy( struct im_connection *ic, const char *handle, const char *fullname )