diff src/protocols/gg/gg.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 e74eb0d11f86
children f8e395a054e2
line wrap: on
line diff
--- a/src/protocols/gg/gg.c	Wed Sep 01 00:48:38 2004 +0000
+++ b/src/protocols/gg/gg.c	Wed Sep 01 01:07:42 2004 +0000
@@ -1,6 +1,6 @@
 /*
  * gaim - Gadu-Gadu Protocol Plugin
- * $Id: gg.c 10809 2004-08-31 01:45:12Z lschiere $
+ * $Id: gg.c 10819 2004-09-01 01:07:42Z lschiere $
  *
  * Copyright (C) 2001 Arkadiusz Mi¶kiewicz <misiek@pld.ORG.PL>
  *
@@ -507,8 +507,8 @@
 				}
 
 				g_snprintf(user, sizeof(user), "%lu", n->uin);
-				serv_got_update(gc, user, (status == UC_UNAVAILABLE) ? 0 : 1, 0, 0, 0,
-						status);
+				serv_got_update(gc, user, (status == UC_UNAVAILABLE) ? FALSE : TRUE, 0, 0,
+					       0, status);
 				n++;
 			}
 		}
@@ -552,8 +552,8 @@
 					buddy->proto_data = g_strdup(e->event.notify60[i].descr);
 				}
 
-				serv_got_update(gc, user, (status == UC_UNAVAILABLE) ? 0 : 1, 0, 0, 0,
-						status);
+				serv_got_update(gc, user, (status == UC_UNAVAILABLE) ? FALSE : TRUE, 0, 0,
+					       0, status);
 				i++;
 			}
 		}
@@ -578,8 +578,8 @@
 			}
 
 			g_snprintf(user, sizeof(user), "%lu", e->event.status.uin);
-			serv_got_update(gc, user, (status == UC_UNAVAILABLE) ? 0 : 1, 0, 0, 0,
-					status);
+			serv_got_update(gc, user, (status == UC_UNAVAILABLE) ? FALSE : TRUE, 0, 0,
+					0, status);
 		}
 		break;
 	case GG_EVENT_STATUS60:
@@ -619,8 +619,8 @@
 				buddy->proto_data = g_strdup(e->event.status60.descr);
 			}
 			    
-			serv_got_update(gc, user, (status == UC_UNAVAILABLE) ? 0 : 1, 0, 0, 0,
-					status);
+			serv_got_update(gc, user, (status == UC_UNAVAILABLE) ? FALSE : TRUE, 0, 0,
+					0, status);
 		}
 		break;
 	case GG_EVENT_ACK: