# HG changeset patch # User Sulabh Mahajan # Date 1219267024 0 # Node ID 8f28023d3d6dbce39ab52994046144c8bac91670 # Parent 3b19ea3c81653506532d5fb5ce77e4060076a24c Dont try a p2p connection to non yahoo buddies diff -r 3b19ea3c8165 -r 8f28023d3d6d libpurple/protocols/yahoo/yahoo.c --- a/libpurple/protocols/yahoo/yahoo.c Wed Aug 20 21:11:56 2008 +0000 +++ b/libpurple/protocols/yahoo/yahoo.c Wed Aug 20 21:17:04 2008 +0000 @@ -2642,6 +2642,10 @@ if( strcmp(purple_normalize(account, purple_account_get_username(account)), who) == 0) return; + /* Dont send p2p packet to buddies of other protocols */ + if(f->protocol) + return; + /* send packet to only those friends who arent p2p connected and to whom we havent already sent. Do not send if this condition doesn't hold good */ if( !( f && (yahoo_friend_get_p2p_status(f) == YAHOO_P2PSTATUS_NOT_CONNECTED) && (f->p2p_packet_sent == 0)) ) return;