Mercurial > pidgin
comparison src/idle.c @ 1468:9db35684c68c
[gaim-migrate @ 1478]
bah. away acts funny enough as it is without auto-away fucking it up.
committer: Tailor Script <tailor@pidgin.im>
author | Eric Warmenhoven <eric@warmenhoven.org> |
---|---|
date | Sun, 04 Feb 2001 10:11:50 +0000 |
parents | 024f9250ba63 |
children | 427e1409917c |
comparison
equal
deleted
inserted
replaced
1467:7f7857c5036e | 1468:9db35684c68c |
---|---|
74 if (!gc->away) { | 74 if (!gc->away) { |
75 if (g_slist_length(connections) == 1) | 75 if (g_slist_length(connections) == 1) |
76 do_away_message(NULL, default_away); | 76 do_away_message(NULL, default_away); |
77 else | 77 else |
78 serv_set_away(gc, GAIM_AWAY_CUSTOM, default_away->message); | 78 serv_set_away(gc, GAIM_AWAY_CUSTOM, default_away->message); |
79 gc->is_auto_away = 1; | |
80 } else | |
81 gc->is_auto_away = 2; | |
82 } else if (gc->is_auto_away && idle_time < 60 * auto_away) { | |
83 if (gc->is_auto_away == 2) { | |
84 gc->is_auto_away = 0; | |
85 return; | |
79 } | 86 } |
80 gc->is_auto_away = TRUE; | 87 gc->is_auto_away = 0; |
81 } else if (gc->is_auto_away && idle_time < 60 * auto_away) { | |
82 gc->is_auto_away = FALSE; | |
83 if (awaymessage == NULL) { | 88 if (awaymessage == NULL) { |
84 debug_printf("removing auto-away message for %s\n", gc->username); | 89 debug_printf("removing auto-away message for %s\n", gc->username); |
85 serv_set_away(gc, GAIM_AWAY_CUSTOM, NULL); | 90 serv_set_away(gc, GAIM_AWAY_CUSTOM, NULL); |
86 } else { | 91 } else { |
87 if (g_slist_length(connections) == 1) | 92 if (g_slist_length(connections) == 1) |