soc.2008.yahoo: fc5b93a3: Dont try connecting to those on sms or o...

sulabh at soc.pidgin.im sulabh at soc.pidgin.im
Fri Aug 22 16:30:29 EDT 2008


-----------------------------------------------------------------
Revision: fc5b93a34ebff77d4a3fb6b2612b4bf1c16d8264
Ancestor: f9ab6a93c8e81fcac0c6a4a4dd49ebd888596a5d
Author: sulabh at soc.pidgin.im
Date: 2008-08-22T20:25:56
Branch: im.pidgin.soc.2008.yahoo
URL: http://d.pidgin.im/viewmtn/revision/info/fc5b93a34ebff77d4a3fb6b2612b4bf1c16d8264

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

ChangeLog: 

Dont try connecting to those on sms or offline.

-------------- next part --------------
============================================================
--- libpurple/protocols/yahoo/yahoo.c	9c8b0925999dd7c05d29851cea2e135cd5ef2c72
+++ libpurple/protocols/yahoo/yahoo.c	fb44c3f5d4451900ce2fc560f5c70b82a7252571
@@ -2650,6 +2650,10 @@ void yahoo_send_p2p_pkt(PurpleConnection
 	if(f->protocol)
 		return;
 
+	/* Finally, don't try to connect to buddies not online or on sms */
+	if( (f->status == YAHOO_STATUS_OFFLINE) || f->sms )
+		return;
+
 	public_ip = purple_network_get_public_ip();
 	if( (sscanf(public_ip, "%u.%u.%u.%u", &temp[0], &temp[1], &temp[2], &temp[3])) !=4 )
 		return ;


More information about the Commits mailing list