aboutsummaryrefslogtreecommitdiffstats
path: root/protocols/yahoo/yahoo.c
diff options
context:
space:
mode:
authorWilmer van der Gaast <wilmer@gaast.net>2007-04-16 21:49:17 -0700
committerWilmer van der Gaast <wilmer@gaast.net>2007-04-16 21:49:17 -0700
commit9624fdf0d6f170d8caa7948fb1b3a138b05e1d8c (patch)
treeaa75862ae3adae1dcdfb689361528289edaeea12 /protocols/yahoo/yahoo.c
parent717e3bf045e5ebfb9b71e9260c8e573daefa7900 (diff)
API cleanup pretty much complete. Fixed pretty much everything except the
buddy/groupchat related functions.
Diffstat (limited to 'protocols/yahoo/yahoo.c')
-rw-r--r--protocols/yahoo/yahoo.c15
1 files changed, 6 insertions, 9 deletions
diff --git a/protocols/yahoo/yahoo.c b/protocols/yahoo/yahoo.c
index aad9d2df..191a197c 100644
--- a/protocols/yahoo/yahoo.c
+++ b/protocols/yahoo/yahoo.c
@@ -617,7 +617,7 @@ void ext_yahoo_got_im( int id, const char *me, const char *who, const char *msg,
struct im_connection *ic = byahoo_get_ic_by_id( id );
char *m = byahoo_strip( msg );
- serv_got_im( ic, (char*) who, (char*) m, 0, 0, strlen( m ) );
+ imcb_buddy_msg( ic, (char*) who, (char*) m, 0, 0 );
g_free( m );
}
@@ -633,14 +633,11 @@ void ext_yahoo_got_file( int id,
void ext_yahoo_typing_notify( int id, const char *ignored, const char *who, int stat )
{
struct im_connection *ic = byahoo_get_ic_by_id( id );
- if (stat == 1) {
- /* User is typing */
- serv_got_typing( ic, (char*) who, 1, 1 );
- }
- else {
- /* User stopped typing */
- serv_got_typing( ic, (char*) who, 1, 0 );
- }
+
+ if( stat == 1 )
+ imcb_buddy_typing( ic, (char*) who, OPT_TYPING );
+ else
+ imcb_buddy_typing( ic, (char*) who, 0 );
}
void ext_yahoo_system_message( int id, const char *msg )