Mercurial > pidgin
diff 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 |
line wrap: on
line diff
--- a/libpurple/protocols/msn/slpcall.c Thu Aug 05 23:16:49 2010 +0000 +++ b/libpurple/protocols/msn/slpcall.c Thu Aug 05 23:42:42 2010 +0000 @@ -1123,9 +1123,7 @@ } g_free(body_str); } - else if (slpmsg->flags == P2P_MSN_OBJ_DATA || - slpmsg->flags == (P2P_WML2009_COMP | P2P_MSN_OBJ_DATA) || - slpmsg->flags == P2P_FILE_DATA) + else if (msn_p2p_msg_is_data(slpmsg->flags)) { slpcall = msn_slplink_find_slp_call_with_session_id(slplink, slpmsg->header->session_id);