Mercurial > pidgin
diff src/protocols/silc/buddy.c @ 10050:30e052ebb5ae
[gaim-migrate @ 11011]
Patch from Dave West:
Updates the SILC prpl to use gaim_prpl_got_user_status
instead of gaim_blist_update_buddy_presence.
Thanks Dave! Sorry it took me so long to get to this!
committer: Tailor Script <tailor@pidgin.im>
| author | Mark Doliner <mark@kingant.net> |
|---|---|
| date | Sun, 19 Sep 2004 20:17:12 +0000 |
| parents | 40676ea67757 |
| children | 292acc5ccf84 |
line wrap: on
line diff
--- a/src/protocols/silc/buddy.c Sun Sep 19 19:07:14 2004 +0000 +++ b/src/protocols/silc/buddy.c Sun Sep 19 20:17:12 2004 +0000 @@ -732,7 +732,7 @@ _("You cannot receive buddy notifications until you " "import his/her public key. You can use the Get Public Key " "command to get the public key.")); - gaim_blist_update_buddy_presence(r->b, FALSE); + gaim_prpl_got_user_status(gaim_buddy_get_account(r->b), gaim_buddy_get_name(r->b), SILCGAIM_STATUS_ID_OFFLINE, NULL); } static void @@ -771,7 +771,7 @@ "%s" G_DIR_SEPARATOR_S "clientkeys" G_DIR_SEPARATOR_S "clientkey_%s.pub", silcgaim_silcdir(), fingerprint); gaim_blist_node_set_string((GaimBlistNode *)b, "public-key", filename); - gaim_blist_update_buddy_presence(r->b, FALSE); + gaim_prpl_got_user_status(gaim_buddy_get_account(r->b), gaim_buddy_get_name(r->b), SILCGAIM_STATUS_ID_OFFLINE, NULL); silc_free(fingerprint); silc_free(r->offline_pk); silc_free(r); @@ -962,8 +962,8 @@ silcgaim_silcdir(), fingerprint); gaim_blist_node_set_string((GaimBlistNode *)b, "public-key", filename); - /* Update online status on the buddy list */ - gaim_blist_update_buddy_presence(b, TRUE); + /* Update online status */ + gaim_prpl_got_user_status(gaim_buddy_get_account(r->b), gaim_buddy_get_name(r->b), SILCGAIM_STATUS_ID_ONLINE, NULL); /* Finally, start watching this user so we receive its status changes from the server */
