libpurple/protocols/yahoo/yahoo_filexfer.c

branch
soc.2008.yahoo
changeset 23693
100d744dc99b
parent 23688
cdc6bf28417e
child 23694
95222c637ab6
--- a/libpurple/protocols/yahoo/yahoo_filexfer.c	Sat Jul 12 19:13:31 2008 +0000
+++ b/libpurple/protocols/yahoo/yahoo_filexfer.c	Sat Jul 12 19:24:34 2008 +0000
@@ -1502,7 +1502,7 @@
 	yd = gc->proto_data;
 
 	p2p_data = g_hash_table_lookup(yd->peers, xfer->who);
-	if( p2p_data->connection_type == 1 )
+	if( p2p_data->connection_type == YAHOO_P2P_WE_ARE_SERVER )
 		if(purple_network_listen_range(0, 0, SOCK_STREAM, yahoo_p2p_ft_server_listen_cb, xfer))
 			return;
 
@@ -1796,7 +1796,7 @@
 	}
 	else if(val_249 == 2)	{
 		p2p_data = g_hash_table_lookup(yd->peers, xfer->who);
-		if( !( p2p_data && (p2p_data->connection_type == 1) ) )	{
+		if( !( p2p_data && (p2p_data->connection_type == YAHOO_P2P_WE_ARE_SERVER) ) )	{
 			purple_xfer_cancel_remote(xfer);
 			return;
 		}

mercurial