# HG changeset patch # User Elliott Sales de Andrade # Date 1272055505 0 # Node ID 09e15f831d7ef2e76641d1d183bc33da5724fa2e # Parent a613180bfeab38d4759866853a7234a4449a096c A direct connection shouldn't be FT-only. diff -r a613180bfeab -r 09e15f831d7e libpurple/protocols/msn/slp.c --- a/libpurple/protocols/msn/slp.c Fri Apr 23 00:03:20 2010 +0000 +++ b/libpurple/protocols/msn/slp.c Fri Apr 23 20:45:05 2010 +0000 @@ -222,15 +222,6 @@ slpmsg->text_body = TRUE; msn_slplink_queue_slpmsg(slplink, slpmsg); - - /* - * TODO: Removed because it interferes with - * direct file transfer. If we're sending some file - * then this call initiates a p2p file transfer which is - * undesirable. - */ - - /* msn_slpcall_session_init(slpcall); */ } void @@ -636,8 +627,6 @@ purple_debug_info("msn", "got_invite: transreqbody received\n"); - g_return_if_fail(slpcall->xfer != NULL); - /* Don't do anything if we already have a direct connection */ if (slpcall->slplink->dc != NULL) return; @@ -694,8 +683,6 @@ else if (!strcmp(type, "application/x-msnmsgr-transrespbody")) { /* A direct connection negotiation response */ - g_return_if_fail(slpcall->xfer != NULL); - msn_slp_process_transresp(slpcall, content); } } @@ -714,8 +701,6 @@ MsnSlpMessage *msg; MsnDirectConn *dc; - g_return_if_fail(slpcall->xfer != NULL); - if (slpcall->slplink->dc != NULL) { /* * If we already have an established direct connection @@ -791,13 +776,6 @@ g_free(content); msn_slplink_queue_slpmsg(slpcall->slplink, msg); - - /* - * Removed because it messes up direct connection by - * starting p2p transfer - */ - - /* msn_slpcall_session_init(slpcall); */ } else if (!strcmp(type, "application/x-msnmsgr-transreqbody")) {