pidgin: bd59b6d4: I think this is the more correct way of ...

sadrul at pidgin.im sadrul at pidgin.im
Sat Sep 26 13:40:22 EDT 2009


-----------------------------------------------------------------
Revision: bd59b6d44034a232a0414586f78d8f559d9705f8
Ancestor: e9025a61100e97343434ea5e55b20ee996f0f26b
Author: sadrul at pidgin.im
Date: 2009-09-26T17:38:05
Branch: im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/bd59b6d44034a232a0414586f78d8f559d9705f8

Modified files:
        libpurple/protocols/yahoo/libymsg.c

ChangeLog: 

I think this is the more correct way of determining invisibility.

-------------- next part --------------
============================================================
--- libpurple/protocols/yahoo/libymsg.c	5502590773a5ac42728f4c98b4fd858bc34807b7
+++ libpurple/protocols/yahoo/libymsg.c	963ad34681074c54d9169812115816c6f1aef110
@@ -4286,7 +4286,7 @@ int yahoo_send_im(PurpleConnection *gc, 
 
 	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 @@ void yahoo_set_idle(PurpleConnection *gc
 		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);
 


More information about the Commits mailing list