diff 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
line wrap: on
line diff
--- a/src/protocols/rendezvous/rendezvous.c	Wed Sep 01 00:48:38 2004 +0000
+++ b/src/protocols/rendezvous/rendezvous.c	Wed Sep 01 01:07:42 2004 +0000
@@ -114,7 +114,7 @@
 	b = gaim_buddy_new(account, name, NULL);
 	/* gaim_blist_node_set_flag(b, GAIM_BLIST_NODE_FLAG_NO_SAVE); */
 	gaim_blist_add_buddy(b, NULL, g, NULL);
-	serv_got_update(gc, b->name, 1, 0, 0, 0, 0);
+	serv_got_update(gc, b->name, TRUE, 0, 0, 0, 0);
 
 #if 0
 	RendezvousBuddy *rb;
@@ -144,7 +144,7 @@
 	if (b == NULL)
 		return;
 
-	serv_got_update(gc, b->name, 0, 0, 0, 0, 0);
+	serv_got_update(gc, b->name, FALSE, 0, 0, 0, 0);
 	gaim_blist_remove_buddy(b);
 	/* XXX - This results in incorrect group counts--needs to be fixed in the core */
 	/* XXX - We also need to call remove_idle_buddy() in server.c for idle buddies */ 
@@ -176,7 +176,7 @@
 					b = (GaimBuddy *)bnode;
 					if (b->account != account)
 						continue;
-					serv_got_update(gc, b->name, 0, 0, 0, 0, 0);
+					serv_got_update(gc, b->name, FALSE, 0, 0, 0, 0);
 					gaim_blist_remove_buddy(b);
 				}
 			}
@@ -264,7 +264,7 @@
 			/* Away */
 			rb->status = UC_UNAVAILABLE;
 		}
-		serv_got_update(gc, name, 1, 0, 0, rb->idle, rb->status);
+		serv_got_update(gc, name, TRUE, 0, 0, rb->idle, rb->status);
 	}
 
 	node1 = mdns_txt_find(rdata, "msg");