soc.2008.yahoo: df0f1863: Dont try a p2p connection to non yahoo b...
sulabh at soc.pidgin.im
sulabh at soc.pidgin.im
Wed Aug 20 17:46:15 EDT 2008
-----------------------------------------------------------------
Revision: df0f1863e6996c97ef4e7a9b57c57876b6a61e43
Ancestor: 18c8a3d858cd631066dac2baa70d8ca8eacd19a2
Author: sulabh at soc.pidgin.im
Date: 2008-08-20T21:17:04
Branch: im.pidgin.soc.2008.yahoo
URL: http://d.pidgin.im/viewmtn/revision/info/df0f1863e6996c97ef4e7a9b57c57876b6a61e43
Modified files:
libpurple/protocols/yahoo/yahoo.c
ChangeLog:
Dont try a p2p connection to non yahoo buddies
-------------- next part --------------
============================================================
--- libpurple/protocols/yahoo/yahoo.c 28aed03da31c8370552476e9079a9c7456c5271d
+++ libpurple/protocols/yahoo/yahoo.c 3a961bd5f75a86b11d593c49e2df5aef151b0bf2
@@ -2642,6 +2642,10 @@ static void yahoo_send_p2p_pkt(PurpleCon
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;
More information about the Commits
mailing list