Mercurial > pidgin
changeset 26143:8f28023d3d6d
Dont try a p2p connection to non yahoo buddies
author | Sulabh Mahajan <sulabh@soc.pidgin.im> |
---|---|
date | Wed, 20 Aug 2008 21:17:04 +0000 |
parents | 3b19ea3c8165 |
children | 0dd4629e75ee |
files | libpurple/protocols/yahoo/yahoo.c |
diffstat | 1 files changed, 4 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- 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;