comparison src/protocols/rendezvous/rendezvous.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 5afa28c94201
children a9fb4493ae22
comparison
equal deleted inserted replaced
9926:b23e70bd1215 9927:fb08a0973b3e
112 return; 112 return;
113 113
114 b = gaim_buddy_new(account, name, NULL); 114 b = gaim_buddy_new(account, name, NULL);
115 /* gaim_blist_node_set_flag(b, GAIM_BLIST_NODE_FLAG_NO_SAVE); */ 115 /* gaim_blist_node_set_flag(b, GAIM_BLIST_NODE_FLAG_NO_SAVE); */
116 gaim_blist_add_buddy(b, NULL, g, NULL); 116 gaim_blist_add_buddy(b, NULL, g, NULL);
117 serv_got_update(gc, b->name, 1, 0, 0, 0, 0); 117 serv_got_update(gc, b->name, TRUE, 0, 0, 0, 0);
118 118
119 #if 0 119 #if 0
120 RendezvousBuddy *rb; 120 RendezvousBuddy *rb;
121 rb = g_hash_table_lookup(rd->buddies, name); 121 rb = g_hash_table_lookup(rd->buddies, name);
122 if (rb == NULL) { 122 if (rb == NULL) {
142 142
143 b = gaim_find_buddy_in_group(account, name, g); 143 b = gaim_find_buddy_in_group(account, name, g);
144 if (b == NULL) 144 if (b == NULL)
145 return; 145 return;
146 146
147 serv_got_update(gc, b->name, 0, 0, 0, 0, 0); 147 serv_got_update(gc, b->name, FALSE, 0, 0, 0, 0);
148 gaim_blist_remove_buddy(b); 148 gaim_blist_remove_buddy(b);
149 /* XXX - This results in incorrect group counts--needs to be fixed in the core */ 149 /* XXX - This results in incorrect group counts--needs to be fixed in the core */
150 /* XXX - We also need to call remove_idle_buddy() in server.c for idle buddies */ 150 /* XXX - We also need to call remove_idle_buddy() in server.c for idle buddies */
151 151
152 /* 152 /*
174 if (!GAIM_BLIST_NODE_IS_BUDDY(bnode)) 174 if (!GAIM_BLIST_NODE_IS_BUDDY(bnode))
175 continue; 175 continue;
176 b = (GaimBuddy *)bnode; 176 b = (GaimBuddy *)bnode;
177 if (b->account != account) 177 if (b->account != account)
178 continue; 178 continue;
179 serv_got_update(gc, b->name, 0, 0, 0, 0, 0); 179 serv_got_update(gc, b->name, FALSE, 0, 0, 0, 0);
180 gaim_blist_remove_buddy(b); 180 gaim_blist_remove_buddy(b);
181 } 181 }
182 } 182 }
183 } 183 }
184 } 184 }
262 rb->status = UC_IDLE; 262 rb->status = UC_IDLE;
263 } else if (!strcmp(node1->value, "dnd")) { 263 } else if (!strcmp(node1->value, "dnd")) {
264 /* Away */ 264 /* Away */
265 rb->status = UC_UNAVAILABLE; 265 rb->status = UC_UNAVAILABLE;
266 } 266 }
267 serv_got_update(gc, name, 1, 0, 0, rb->idle, rb->status); 267 serv_got_update(gc, name, TRUE, 0, 0, rb->idle, rb->status);
268 } 268 }
269 269
270 node1 = mdns_txt_find(rdata, "msg"); 270 node1 = mdns_txt_find(rdata, "msg");
271 if ((node1 != NULL) && (node1->value != NULL)) { 271 if ((node1 != NULL) && (node1->value != NULL)) {
272 g_free(rb->msg); 272 g_free(rb->msg);