Mercurial > pidgin.yaz
diff libpurple/protocols/yahoo/yahoo_filexfer.c @ 25629:38d188685f2f
changed gboolean connection_type to enum yahoo_p2p_connection_type
author | Sulabh Mahajan <sulabh@soc.pidgin.im> |
---|---|
date | Sat, 12 Jul 2008 19:24:34 +0000 |
parents | 37b207e08c69 |
children | 63033139c590 |
line wrap: on
line diff
--- 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; }