diff options
author | Sulabh Mahajan <sulabh@pidgin.im> | 2008-08-20 21:17:04 +0000 |
---|---|---|
committer | Sulabh Mahajan <sulabh@pidgin.im> | 2008-08-20 21:17:04 +0000 |
commit | 4f8429e6dcf960d53efaad3198a66cf15ee577f4 (patch) | |
tree | 8ac3bf166f354ec32c0f9c897722095435af1494 | |
parent | 6e9a001bd61504f2c28d6242462d23d25797f62e (diff) | |
download | pidgin-4f8429e6dcf960d53efaad3198a66cf15ee577f4.tar.gz |
Dont try a p2p connection to non yahoo buddies
-rw-r--r-- | libpurple/protocols/yahoo/yahoo.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libpurple/protocols/yahoo/yahoo.c b/libpurple/protocols/yahoo/yahoo.c index bb2bed8909..dda5ad6430 100644 --- a/libpurple/protocols/yahoo/yahoo.c +++ b/libpurple/protocols/yahoo/yahoo.c @@ -2642,6 +2642,10 @@ static void yahoo_send_p2p_pkt(PurpleConnection *gc, const char *who, int val_13 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; |