changeset 28665:60e4ef6801ff

I think this is the more correct way of determining invisibility.
author Sadrul Habib Chowdhury <imadil@gmail.com>
date Sat, 26 Sep 2009 17:38:05 +0000
parents 208fbf27d987
children 4c58aa4aacb0 160b864e3d9b b5a8d5b6608e 057372f5c319
files libpurple/protocols/yahoo/libymsg.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/libpurple/protocols/yahoo/libymsg.c	Sat Sep 26 17:34:10 2009 +0000
+++ b/libpurple/protocols/yahoo/libymsg.c	Sat Sep 26 17:38:05 2009 +0000
@@ -4286,7 +4286,7 @@
 
 	msn = !g_ascii_strncasecmp(who, "msn/", 4);
 
-	if( strncmp(who, "+", 1) == 0 ) {
+	if (who[0] == '+') {
 		/* we have an sms to be sent */
 		gchar *carrier = NULL;
 		const char *alias = NULL;
@@ -4543,7 +4543,7 @@
 		yd->current_status = get_yahoo_status_from_purple_status(status);
 	}
 
-	invisible = !( purple_presence_is_available(purple_account_get_presence(purple_connection_get_account(gc))) );
+	invisible = (yd->current_status == YAHOO_STATUS_INVISIBLE);
 
 	pkt = yahoo_packet_new(YAHOO_SERVICE_Y6_STATUS_UPDATE, YAHOO_STATUS_AVAILABLE, yd->session_id);