diff src/protocols/novell/novell.c @ 11536:16796e09b9c1

[gaim-migrate @ 13790] GaimBuddy->uc is gone! at last! (it survived probably > 5 years). You'll want to make sure any plugins that make use of GaimBuddy in any way are recompiled, otherwise you'll have el-bizarro crashes. You probably want to make sure you make clean && make && make install too. Maybe reformatting your hard disk to remove any references to uc would be a good idea too. committer: Tailor Script <tailor@pidgin.im>
author Stu Tomlinson <stu@nosnilmot.com>
date Wed, 14 Sep 2005 00:54:21 +0000
parents c9b815aeddc1
children 9ddda2a86f50
line wrap: on
line diff
--- a/src/protocols/novell/novell.c	Tue Sep 13 21:14:58 2005 +0000
+++ b/src/protocols/novell/novell.c	Wed Sep 14 00:54:21 2005 +0000
@@ -2756,7 +2756,20 @@
 static void
 novell_list_emblems(GaimBuddy * buddy, const char **se, const char **sw, const char **nw, const char **ne)
 {
-	int status = buddy->uc >> 1;
+	NMUserRecord *user_record = NULL;
+	GaimConnection *gc;
+	NMUser *user;
+	int status = 0;
+
+	gc = gaim_account_get_connection(buddy->account);
+
+	if (gc == NULL || (user = gc->proto_data) == NULL)
+		return;
+
+	user_record = nm_find_user_record(user, buddy->name);
+
+	if (user_record)
+		status = nm_user_record_get_status(user_record);
 
 	switch (status) {
 		case NM_STATUS_AVAILABLE: