Mercurial > pidgin
diff src/protocols/silc/buddy.c @ 9927:fb08a0973b3e
[gaim-migrate @ 10819]
" Currently, the "loggedin" parameter of
serv_got_update() is of type int and used as a boolean.
I updated it and all references to be gboolean.
I also noticed that "presence" in
gaim_blist_update_buddy_presence() is also a really
boolean. of whether or not the buddy is currently
online. There seemed to be some confusion,
particularly in the silc plugin which tried to use a
GaimBuddyPresenceState (coincidentally (or perhaps not)
GAIM_BUDDY_OFFLINE and GAIM_BUDDY_ONLINE work as FALSE
and TRUE respectively). The value passed to
gaim_blist_update_buddy_presence() doesn't directly
become the buddy presence state and this patch helps
avoid confusion in this respect." --Daniel Atallah
committer: Tailor Script <tailor@pidgin.im>
| author | Luke Schierer <lschiere@pidgin.im> |
|---|---|
| date | Wed, 01 Sep 2004 01:07:42 +0000 |
| parents | 578986136bac |
| children | 40676ea67757 |
line wrap: on
line diff
--- a/src/protocols/silc/buddy.c Wed Sep 01 00:48:38 2004 +0000 +++ b/src/protocols/silc/buddy.c Wed Sep 01 01:07:42 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, GAIM_BUDDY_OFFLINE); + gaim_blist_update_buddy_presence(r->b, FALSE); } 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, GAIM_BUDDY_OFFLINE); + gaim_blist_update_buddy_presence(r->b, FALSE); silc_free(fingerprint); silc_free(r->offline_pk); silc_free(r); @@ -963,7 +963,7 @@ gaim_blist_node_set_string((GaimBlistNode *)b, "public-key", filename); /* Update online status on the buddy list */ - gaim_blist_update_buddy_presence(b, GAIM_BUDDY_ONLINE); + gaim_blist_update_buddy_presence(b, TRUE); /* Finally, start watching this user so we receive its status changes from the server */
