aboutsummaryrefslogtreecommitdiffstats
path: root/protocols/yahoo/yahoo.c
diff options
context:
space:
mode:
authorWilmer van der Gaast <wilmer@gaast.net>2005-12-14 00:27:58 +0100
committerWilmer van der Gaast <wilmer@gaast.net>2005-12-14 00:27:58 +0100
commit22bf64eab8a79352317ee190cddfeef3011aa8dc (patch)
tree588aeb197e2b24660c2813866270f8e780903da0 /protocols/yahoo/yahoo.c
parent6aaa2213588f7c4c00a68c5622f6974679eaf196 (diff)
parente7f46c56ffa29c6f8f4917c5f367a61706758e2a (diff)
Improved typing notification support. (from f0rked)
Diffstat (limited to 'protocols/yahoo/yahoo.c')
-rw-r--r--protocols/yahoo/yahoo.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/protocols/yahoo/yahoo.c b/protocols/yahoo/yahoo.c
index d7f7d1dc..74d468eb 100644
--- a/protocols/yahoo/yahoo.c
+++ b/protocols/yahoo/yahoo.c
@@ -640,8 +640,14 @@ void ext_yahoo_got_file( int id, char *who, char *url, long expires, char *msg,
void ext_yahoo_typing_notify( int id, char *who, int stat )
{
struct gaim_connection *gc = byahoo_get_gc_by_id( id );
-
- serv_got_typing( gc, who, 1 );
+ if (stat == 1) {
+ /* User is typing */
+ serv_got_typing( gc, who, 1, 1 );
+ }
+ else {
+ /* User stopped typing */
+ serv_got_typing( gc, who, 1, 0 );
+ }
}
void ext_yahoo_system_message( int id, char *msg )