comparison src/server.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 8651abf08dd5
children cee849d17167
comparison
equal deleted inserted replaced
9926:b23e70bd1215 9927:fb08a0973b3e
1140 1140
1141 /* 1141 /*
1142 * @param idle The time at which the buddy became idle, in seconds 1142 * @param idle The time at which the buddy became idle, in seconds
1143 * since the epoch. 1143 * since the epoch.
1144 */ 1144 */
1145 void serv_got_update(GaimConnection *gc, const char *name, int loggedin, 1145 void serv_got_update(GaimConnection *gc, const char *name, gboolean loggedin,
1146 int evil, time_t signon, time_t idle, int type) 1146 int evil, time_t signon, time_t idle, int type)
1147 { 1147 {
1148 GaimAccount *account; 1148 GaimAccount *account;
1149 GaimConversation *c; 1149 GaimConversation *c;
1150 GaimBuddy *b; 1150 GaimBuddy *b;