diff src/protocols/msn/msn.c @ 5372:fa0217bec87e

[gaim-migrate @ 5748] The mobile state should now reflect the server under all cases. committer: Tailor Script <tailor@pidgin.im>
author Christian Hammond <chipx86@chipx86.com>
date Wed, 14 May 2003 07:50:26 +0000
parents a87818e9dc54
children a991ff4d5d40
line wrap: on
line diff
--- a/src/protocols/msn/msn.c	Wed May 14 07:24:56 2003 +0000
+++ b/src/protocols/msn/msn.c	Wed May 14 07:50:26 2003 +0000
@@ -255,10 +255,13 @@
 msn_list_emblems(struct buddy *b, char **se, char **sw,
 				 char **nw, char **ne)
 {
+	MsnUser *user;
 	char *emblems[4] = { NULL, NULL, NULL, NULL };
 	int away_type = MSN_AWAY_TYPE(b->uc);
 	int i = 0;
 
+	user = b->proto_data;
+
 	if (b->present == GAIM_BUDDY_OFFLINE)
 		emblems[i++] = "offline";
 	else if (away_type == MSN_BUSY || away_type == MSN_PHONE)
@@ -266,7 +269,7 @@
 	else if (away_type != 0)
 		emblems[i++] = "away";
 
-	if (MSN_MOBILE(b->uc))
+	if (user->mobile)
 		emblems[i++] = "wireless";
 
 	*se = emblems[0];
@@ -368,13 +371,15 @@
 static GList *
 msn_buddy_menu(struct gaim_connection *gc, const char *who)
 {
+	MsnUser *user;
 	struct proto_buddy_menu *pbm;
 	struct buddy *b;
 	GList *m = NULL;
 
 	b = gaim_find_buddy(gc->account, who);
+	user = b->proto_data;
 
-	if (MSN_MOBILE(b->uc)) {
+	if (user->mobile) {
 		pbm = g_new0(struct proto_buddy_menu, 1);
 		pbm->label    = _("Send to Mobile");
 		pbm->callback = __show_send_to_mobile_cb;