Mercurial > pidgin
comparison libpurple/protocols/msn/slpcall.c @ 30868:5964f65c17ed
Avoid duplicated code using a util function to check the flags.
author | masca@cpw.pidgin.im |
---|---|
date | Thu, 05 Aug 2010 23:42:42 +0000 |
parents | 16ab805406d1 |
children | d9ca3798faa5 |
comparison
equal
deleted
inserted
replaced
30867:6b73ff4fcc69 | 30868:5964f65c17ed |
---|---|
1121 body_str = g_strndup((const char *)body, body_len); | 1121 body_str = g_strndup((const char *)body, body_len); |
1122 slpcall = msn_slp_sip_recv(slplink, body_str); | 1122 slpcall = msn_slp_sip_recv(slplink, body_str); |
1123 } | 1123 } |
1124 g_free(body_str); | 1124 g_free(body_str); |
1125 } | 1125 } |
1126 else if (slpmsg->flags == P2P_MSN_OBJ_DATA || | 1126 else if (msn_p2p_msg_is_data(slpmsg->flags)) |
1127 slpmsg->flags == (P2P_WML2009_COMP | P2P_MSN_OBJ_DATA) || | |
1128 slpmsg->flags == P2P_FILE_DATA) | |
1129 { | 1127 { |
1130 slpcall = msn_slplink_find_slp_call_with_session_id(slplink, slpmsg->header->session_id); | 1128 slpcall = msn_slplink_find_slp_call_with_session_id(slplink, slpmsg->header->session_id); |
1131 | 1129 |
1132 if (slpcall != NULL) | 1130 if (slpcall != NULL) |
1133 { | 1131 { |