Mercurial > pidgin
diff src/protocols/msn/oim.c @ 19801:90f89601d6d3
[gaim-migrate @ 16758]
change to support Showing Yahoo Message
committed by MaYuan<mayuan2006@gmail.com>
committer: Ethan Blanton <elb@pidgin.im>
author | Ma Yuan <mayuan2006@gmail.com> |
---|---|
date | Mon, 14 Aug 2006 16:07:20 +0000 |
parents | c2f3cd6626e1 |
children | 22eeb4882d77 |
line wrap: on
line diff
--- a/src/protocols/msn/oim.c Sun Aug 13 16:01:52 2006 +0000 +++ b/src/protocols/msn/oim.c Mon Aug 14 16:07:20 2006 +0000 @@ -202,35 +202,6 @@ msn_soap_read_cb(data,source,cond); } -/*get the conversation*/ -static GaimConversation * -msn_oim_get_conv(MsnOim *oim,const char *passport) -{ - GaimAccount *account; - GaimConversation * conv; - - g_return_val_if_fail(oim != NULL, NULL); - account = oim->session->account; - - conv = gaim_find_conversation_with_account(GAIM_CONV_TYPE_IM, - passport, account); - if(conv == NULL){ - conv = gaim_conversation_new(GAIM_CONV_TYPE_IM, account, passport); - } - return conv; -} - -/*put the OIM Message to User Conversation*/ -void -msn_oim_report_user(MsnOim *oim,const char *passport,char *msg) -{ - GaimConversation * conv; - - if ((conv = msn_oim_get_conv(oim,passport)) != NULL){ - gaim_conversation_write(conv, NULL, msg, GAIM_MESSAGE_SYSTEM, time(NULL)); - } -} - /*parse the oim XML data*/ void msn_parse_oim_msg(MsnOim *oim,const char *xmlmsg) @@ -250,7 +221,7 @@ nNode = xmlnode_get_child(mNode,"N"); nickname = xmlnode_get_data(nNode); gaim_debug_info("MaYuan","E:{%s},I:{%s},rTime:{%s}\n",passport,msgid,rTime); -// msn_oim_report_user(oim,passport,"hello"); +// msn_session_report_user(oim->session,passport,"hello"); oim->oim_list = g_list_append(oim->oim_list,msgid); } if(msn_soap_connected(oim->retrieveconn) == -1){