diff options
author | Wilmer van der Gaast <wilmer@gaast.net> | 2010-08-07 22:06:24 +0100 |
---|---|---|
committer | Wilmer van der Gaast <wilmer@gaast.net> | 2010-08-07 22:06:24 +0100 |
commit | 203a2d2e8857e4c83f8f5e1a89de03ea08538cb2 (patch) | |
tree | a55e88fda74a3c77c29890e6da53e1c2b6e987d5 /protocols/bee_user.c | |
parent | 7b87539aedd967884d4e4eed75d1052a233720eb (diff) |
Allow protocol modules to keep per-contact protocol-specific data. Use
this in the Twitter module to remember the id and timestamp of a contact's
last tweet, which can later be used for simple replies/retweets.
Diffstat (limited to 'protocols/bee_user.c')
-rw-r--r-- | protocols/bee_user.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/protocols/bee_user.c b/protocols/bee_user.c index 4399a566..5acd5b83 100644 --- a/protocols/bee_user.c +++ b/protocols/bee_user.c @@ -42,6 +42,8 @@ bee_user_t *bee_user_new( bee_t *bee, struct im_connection *ic, const char *hand if( bee->ui->user_new ) bee->ui->user_new( bee, bu ); + if( ic->acc->prpl->buddy_data_add ) + ic->acc->prpl->buddy_data_add( bu ); /* Offline by default. This will set the right flags. */ imcb_buddy_status( ic, handle, 0, NULL, NULL ); @@ -56,6 +58,8 @@ int bee_user_free( bee_t *bee, bee_user_t *bu ) if( bee->ui->user_free ) bee->ui->user_free( bee, bu ); + if( bu->ic->acc->prpl->buddy_data_free ) + bu->ic->acc->prpl->buddy_data_free( bu ); g_free( bu->handle ); g_free( bu->fullname ); |