Mercurial > pidgin.yaz
diff src/idle.c @ 1401:bf041349b11e
[gaim-migrate @ 1411]
abliity to set accounts away independent of each other. also allows for all the other states (like in yahoo and icq). probably breaks MSN, so don't use it until rob fixes it.
committer: Tailor Script <tailor@pidgin.im>
author | Eric Warmenhoven <eric@warmenhoven.org> |
---|---|
date | Wed, 10 Jan 2001 22:15:24 +0000 |
parents | ad346597b7b2 |
children | 96e93119268d |
line wrap: on
line diff
--- a/src/idle.c Wed Jan 10 19:56:39 2001 +0000 +++ b/src/idle.c Wed Jan 10 22:15:24 2001 +0000 @@ -34,6 +34,7 @@ #include "multi.h" #include "gaim.h" +#include "prpl.h" int auto_is_away = 0; @@ -74,12 +75,12 @@ set_default_away((GtkWidget*)NULL, (gpointer)g_slist_index(away_messages, default_away)); - do_away_message((GtkWidget*)NULL, default_away); + serv_set_away(gc, GAIM_AWAY_CUSTOM, default_away->message); auto_is_away = 1; } else if (auto_is_away == 1 && idle_time < 60 * auto_away) { auto_is_away = 0; if (awaymessage != NULL) - do_im_back((GtkWidget *)NULL, (GtkWidget *)NULL); + serv_set_away(gc, GAIM_AWAY_CUSTOM, NULL); }