Mercurial > pidgin.yaz
changeset 29776:56b73246e468
Remove some unnecessary code.
author | Elliott Sales de Andrade <qulogic@pidgin.im> |
---|---|
date | Thu, 18 Feb 2010 01:19:10 +0000 |
parents | 42b732b92cec |
children | 46abe1203e0b |
files | libpurple/protocols/msn/notification.c |
diffstat | 1 files changed, 0 insertions(+), 75 deletions(-) [+] |
line wrap: on
line diff
--- a/libpurple/protocols/msn/notification.c Wed Feb 17 17:03:31 2010 +0000 +++ b/libpurple/protocols/msn/notification.c Thu Feb 18 01:19:10 2010 +0000 @@ -361,81 +361,6 @@ msn_cmdproc_send_trans(cmdproc, trans); } -#if 0 -static void -ubm_cmd_post(MsnCmdProc *cmdproc, MsnCommand *cmd, char *payload, - size_t len) -{ - MsnMessage *msg; - PurpleConnection *gc; - const char *passport; - const char *content_type; - - purple_debug_info("msn", "Process UBM payload:%.*s\n", (guint)len, payload); - msg = msn_message_new_from_cmd(cmdproc->session, cmd); - - msn_message_parse_payload(msg, payload, len,MSG_LINE_DEM,MSG_BODY_DEM); - if (purple_debug_is_verbose()) - msn_message_show_readable(msg, "Notification", TRUE); - - gc = cmdproc->session->account->gc; - passport = msg->remote_user; - - content_type = msn_message_get_content_type(msg); - purple_debug_info("msn", "type:%s\n", content_type); - if(!strcmp(content_type,"text/plain")){ - const char *value; - const char *body; - char *body_enc; - char *body_final = NULL; - size_t body_len; - - body = msn_message_get_bin_data(msg, &body_len); - body_enc = g_markup_escape_text(body, body_len); - - if ((value = msn_message_get_attr(msg, "X-MMS-IM-Format")) != NULL) { - char *pre, *post; - - msn_parse_format(value, &pre, &post); - body_final = g_strdup_printf("%s%s%s", pre ? pre : "", - body_enc ? body_enc : "", post ? post : ""); - g_free(pre); - g_free(post); - } - g_free(body_enc); - serv_got_im(gc, passport, body_final, 0, time(NULL)); - g_free(body_final); - } - if(!strcmp(content_type,"text/x-msmsgscontrol")){ - if(msn_message_get_attr(msg, "TypingUser") != NULL){ - serv_got_typing(gc, passport, MSN_TYPING_RECV_TIMEOUT, - PURPLE_TYPING); - } - } - if(!strcmp(content_type,"text/x-msnmsgr-datacast")){ - char *username, *str; - PurpleAccount *account; - PurpleBuddy *buddy; - const char *user; - - account = cmdproc->session->account; - user = msg->remote_user; - - if ((buddy = purple_find_buddy(account, user)) != NULL){ - username = g_markup_escape_text(purple_buddy_get_alias(buddy), -1); - }else{ - username = g_markup_escape_text(user, -1); - } - - str = g_strdup_printf(_("%s just sent you a Nudge!"), username); - g_free(username); - msn_session_report_user(cmdproc->session,user,str,PURPLE_MESSAGE_SYSTEM); - g_free(str); - } - msn_message_destroy(msg); -} -#endif - /*Yahoo msg process*/ static void ubm_cmd(MsnCmdProc *cmdproc, MsnCommand *cmd)