diff src/protocols/silc/ops.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 c28d5b45624e
children 0f5ad31051a0
line wrap: on
line diff
--- a/src/protocols/silc/ops.c	Wed Sep 01 00:48:38 2004 +0000
+++ b/src/protocols/silc/ops.c	Wed Sep 01 01:07:42 2004 +0000
@@ -708,7 +708,7 @@
 				     client_entry->mode & SILC_UMODE_PAGE ||
 				     client_entry->mode & SILC_UMODE_DETACHED)) {
 					client_entry->mode = mode;
-					gaim_blist_update_buddy_presence(b, GAIM_BUDDY_ONLINE);
+					gaim_blist_update_buddy_presence(b, TRUE);
 				}
 				else if ((mode & SILC_UMODE_GONE) ||
 					 (mode & SILC_UMODE_INDISPOSED) ||
@@ -716,16 +716,16 @@
 					 (mode & SILC_UMODE_PAGE) ||
 					 (mode & SILC_UMODE_DETACHED)) {
 					client_entry->mode = mode;
-					gaim_blist_update_buddy_presence(b, GAIM_BUDDY_OFFLINE);
+					gaim_blist_update_buddy_presence(b, FALSE);
 				}
 			} else if (notify == SILC_NOTIFY_TYPE_SIGNOFF ||
 				   notify == SILC_NOTIFY_TYPE_SERVER_SIGNOFF ||
 				   notify == SILC_NOTIFY_TYPE_KILLED) {
 				client_entry->mode = mode;
-				gaim_blist_update_buddy_presence(b, GAIM_BUDDY_OFFLINE);
+				gaim_blist_update_buddy_presence(b, FALSE);
 			} else if (notify == SILC_NOTIFY_TYPE_NONE) {
 				client_entry->mode = mode;
-				gaim_blist_update_buddy_presence(b, GAIM_BUDDY_ONLINE);
+				gaim_blist_update_buddy_presence(b, TRUE);
 			}
 		}
 		break;