Mercurial > pidgin
diff src/idle.c @ 1254:9da444224f0e
[gaim-migrate @ 1264]
bmiller's away-on-signon patch. does --away=mesg use "mesg" or the away message titled "mesg"? i didn't look hehe. but if it uses "mesg" instead of the away message titled "mesg" then i'm not sure it works.... i figured someone would report a bug if it didn't work
committer: Tailor Script <tailor@pidgin.im>
| author | Eric Warmenhoven <eric@warmenhoven.org> |
|---|---|
| date | Thu, 14 Dec 2000 00:11:59 +0000 |
| parents | b5783215b245 |
| children | ad346597b7b2 |
line wrap: on
line diff
--- a/src/idle.c Wed Dec 13 23:59:46 2000 +0000 +++ b/src/idle.c Thu Dec 14 00:11:59 2000 +0000 @@ -71,10 +71,10 @@ if ((general_options & OPT_GEN_AUTO_AWAY) && (idle_time > (60 * auto_away)) && (awaymessage == NULL) && (auto_is_away == 0)) { - struct away_message *a; - set_default_away((GtkWidget *)NULL, (gpointer)default_away); - a = g_slist_nth_data(away_messages, default_away); - do_away_message((GtkWidget *)NULL, a); + set_default_away((GtkWidget*)NULL, + (gpointer)g_slist_index(away_messages, + default_away)); + do_away_message((GtkWidget*)NULL, default_away); auto_is_away = 1; } else if (auto_is_away == 1 && idle_time < 60 * auto_away) { auto_is_away = 0;
