From c3c2e1403287380e5e9d520900f761bbfa738b9f Mon Sep 17 00:00:00 2001 From: Wilmer van der Gaast Date: Wed, 30 Nov 2005 13:12:25 +0100 Subject: Got rid of the config.h includes in IM-code. Now that HAVE_CONFIG_H is defined, they started to cause problems. --- protocols/yahoo/crypt.c | 4 ---- protocols/yahoo/libyahoo2.c | 4 ---- protocols/yahoo/yahoo_httplib.c | 4 ---- protocols/yahoo/yahoo_util.c | 4 ---- 4 files changed, 16 deletions(-) (limited to 'protocols/yahoo') diff --git a/protocols/yahoo/crypt.c b/protocols/yahoo/crypt.c index 00eed70b..5122e3af 100644 --- a/protocols/yahoo/crypt.c +++ b/protocols/yahoo/crypt.c @@ -22,10 +22,6 @@ * already had. isn't that lovely. people should just use linux or * freebsd, crypt works properly on those systems. i hate solaris */ -#if HAVE_CONFIG_H -# include -#endif - #if HAVE_STRING_H # include #elif HAVE_STRINGS_H diff --git a/protocols/yahoo/libyahoo2.c b/protocols/yahoo/libyahoo2.c index 62ceb0af..c691f18b 100644 --- a/protocols/yahoo/libyahoo2.c +++ b/protocols/yahoo/libyahoo2.c @@ -43,10 +43,6 @@ * */ -#if HAVE_CONFIG_H -# include -#endif - #ifndef _WIN32 #include #endif diff --git a/protocols/yahoo/yahoo_httplib.c b/protocols/yahoo/yahoo_httplib.c index 41e31a23..dbbe2a84 100644 --- a/protocols/yahoo/yahoo_httplib.c +++ b/protocols/yahoo/yahoo_httplib.c @@ -19,10 +19,6 @@ * */ -#if HAVE_CONFIG_H -# include -#endif - #include #include diff --git a/protocols/yahoo/yahoo_util.c b/protocols/yahoo/yahoo_util.c index cb155e3c..3c99cf44 100644 --- a/protocols/yahoo/yahoo_util.c +++ b/protocols/yahoo/yahoo_util.c @@ -19,10 +19,6 @@ * */ -#if HAVE_CONFIG_H -# include -#endif - #if STDC_HEADERS # include #else -- cgit v1.2.3 From e7f46c56ffa29c6f8f4917c5f367a61706758e2a Mon Sep 17 00:00:00 2001 From: Matt Sparks Date: Sun, 4 Dec 2005 06:58:41 -0600 Subject: Implements solution to typing notifications in ticket #45 --- protocols/yahoo/yahoo.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'protocols/yahoo') 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 ) -- cgit v1.2.3