Mercurial > pidgin.yaz
comparison src/connection.c @ 11297:84d3f47e6258
[gaim-migrate @ 13497]
Don't set the presence of an account to "offline" when the account signs
off. This is backwards: an account should be set to "offline" and THEN
it should get signed off.
committer: Tailor Script <tailor@pidgin.im>
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Thu, 18 Aug 2005 04:59:23 +0000 |
parents | bb0d7b719af2 |
children | 0d3d1031e397 |
comparison
equal
deleted
inserted
replaced
11296:87a7fdd3ffcc | 11297:84d3f47e6258 |
---|---|
155 { | 155 { |
156 GaimAccount *account; | 156 GaimAccount *account; |
157 #if 0 | 157 #if 0 |
158 GList *wins; | 158 GList *wins; |
159 #endif | 159 #endif |
160 GaimPresence *presence = NULL; | |
161 GaimPluginProtocolInfo *prpl_info = NULL; | 160 GaimPluginProtocolInfo *prpl_info = NULL; |
162 | 161 |
163 g_return_if_fail(gc != NULL); | 162 g_return_if_fail(gc != NULL); |
164 | 163 |
165 account = gaim_connection_get_account(gc); | 164 account = gaim_connection_get_account(gc); |
198 gaim_connection_set_state(gc, GAIM_DISCONNECTED); | 197 gaim_connection_set_state(gc, GAIM_DISCONNECTED); |
199 | 198 |
200 /* LOG system_log(log_signoff, gc, NULL, | 199 /* LOG system_log(log_signoff, gc, NULL, |
201 OPT_LOG_BUDDY_SIGNON | OPT_LOG_MY_SIGNON); */ | 200 OPT_LOG_BUDDY_SIGNON | OPT_LOG_MY_SIGNON); */ |
202 gaim_signal_emit(gaim_connections_get_handle(), "signed-off", gc); | 201 gaim_signal_emit(gaim_connections_get_handle(), "signed-off", gc); |
203 | |
204 presence = gaim_account_get_presence(account); | |
205 if (gaim_presence_is_online(presence) == TRUE) | |
206 gaim_presence_set_status_active(presence, "offline", TRUE); | |
207 | 202 |
208 #if 0 | 203 #if 0 |
209 /* see comment later in file on if 0'd same code */ | 204 /* see comment later in file on if 0'd same code */ |
210 /* | 205 /* |
211 * XXX This is a hack! Remove this and replace it with a better event | 206 * XXX This is a hack! Remove this and replace it with a better event |