Mercurial > pidgin
comparison src/idle.c @ 1450:024f9250ba63
[gaim-migrate @ 1460]
hi there
committer: Tailor Script <tailor@pidgin.im>
author | Eric Warmenhoven <eric@warmenhoven.org> |
---|---|
date | Wed, 31 Jan 2001 07:36:01 +0000 |
parents | 38f712e75836 |
children | 9db35684c68c |
comparison
equal
deleted
inserted
replaced
1449:91d84e2073de | 1450:024f9250ba63 |
---|---|
82 gc->is_auto_away = FALSE; | 82 gc->is_auto_away = FALSE; |
83 if (awaymessage == NULL) { | 83 if (awaymessage == NULL) { |
84 debug_printf("removing auto-away message for %s\n", gc->username); | 84 debug_printf("removing auto-away message for %s\n", gc->username); |
85 serv_set_away(gc, GAIM_AWAY_CUSTOM, NULL); | 85 serv_set_away(gc, GAIM_AWAY_CUSTOM, NULL); |
86 } else { | 86 } else { |
87 debug_printf("replacing auto-away with global for %s\n", gc->username); | 87 if (g_slist_length(connections) == 1) |
88 serv_set_away(gc, GAIM_AWAY_CUSTOM, awaymessage->message); | 88 do_im_back(0, 0); |
89 else { | |
90 debug_printf("replacing auto-away with global for %s\n", gc->username); | |
91 serv_set_away(gc, GAIM_AWAY_CUSTOM, awaymessage->message); | |
92 } | |
89 } | 93 } |
90 } | 94 } |
91 | 95 |
92 | 96 |
93 /* If we're not reporting idle times to the server, still use Gaim | 97 /* If we're not reporting idle times to the server, still use Gaim |