Mercurial > pidgin
changeset 20433:df8f443ae65f
use serv_got_im to report received oim's
make a function only used in session.c static.
author | Stu Tomlinson <stu@nosnilmot.com> |
---|---|
date | Sat, 26 May 2007 15:20:23 +0000 |
parents | 703fc3437ab5 |
children | 998f9b5c8c8d |
files | libpurple/protocols/msn/oim.c libpurple/protocols/msn/session.c libpurple/protocols/msn/session.h |
diffstat | 3 files changed, 3 insertions(+), 8 deletions(-) [+] |
line wrap: on
line diff
--- a/libpurple/protocols/msn/oim.c Sat May 26 15:07:26 2007 +0000 +++ b/libpurple/protocols/msn/oim.c Sat May 26 15:20:23 2007 +0000 @@ -449,7 +449,8 @@ g_free(passport_str); purple_debug_info("MaYuan","oim Date:{%s},passport{%s}\n",date,passport); - msn_session_report_user(oim->session,passport,decode_msg,PURPLE_MESSAGE_SYSTEM); + /* XXX: TODO: set the time from date */ + serv_got_im(oim->session->account->gc, passport, decode_msg, 0, time(NULL)); /*Now get the oim message ID from the oim_list. * and append to read list to prepare for deleting the Offline Message when sign out
--- a/libpurple/protocols/msn/session.c Sat May 26 15:07:26 2007 +0000 +++ b/libpurple/protocols/msn/session.c Sat May 26 15:20:23 2007 +0000 @@ -164,8 +164,7 @@ return NULL; } -/*get the conversation*/ -PurpleConversation * +static PurpleConversation * msn_session_get_conv(MsnSession *session,const char *passport) { PurpleAccount *account;
--- a/libpurple/protocols/msn/session.h Sat May 26 15:07:26 2007 +0000 +++ b/libpurple/protocols/msn/session.h Sat May 26 15:20:23 2007 +0000 @@ -237,11 +237,6 @@ */ void msn_session_finish_login(MsnSession *session); -/*get conversation via session, - * If has one, return that,else create a new one; - */ -PurpleConversation *msn_session_get_conv(MsnSession *session,const char *passport); - /*post message to User*/ void msn_session_report_user(MsnSession *session,const char *passport, char *msg,PurpleMessageFlags flags);