comparison src/connection.c @ 11975:aadf61b30056

[gaim-migrate @ 14268] 1. Fix the I'dle Mak'er plugin 2. Show a friendly "none of your accounts are idle" message in the I'dle Mak'er plugin when attempting to unidle your accounts and none of them are idle 3. HIGify the capitalization of the I'dle Mak'er menu items 4. i18n system log "signed on" and "signed off" messages 5. Log when your accounts become idle and unidle 6. Add default saved statuses if the user has no saved statuses 7. Removed serv_set_idle(). Use gaim_presence_set_idle() instead. committer: Tailor Script <tailor@pidgin.im>
author Mark Doliner <mark@kingant.net>
date Fri, 04 Nov 2005 19:15:05 +0000
parents 0fab529c01fc
children ed60afb9294f
comparison
equal deleted inserted replaced
11974:2ff2965895f3 11975:aadf61b30056
193 gaim_connection_set_state(gc, GAIM_DISCONNECTED); 193 gaim_connection_set_state(gc, GAIM_DISCONNECTED);
194 194
195 if (remove) 195 if (remove)
196 gaim_blist_remove_account(account); 196 gaim_blist_remove_account(account);
197 197
198 /* LOG system_log(log_signoff, gc, NULL,
199 OPT_LOG_BUDDY_SIGNON | OPT_LOG_MY_SIGNON); */
200 gaim_signal_emit(gaim_connections_get_handle(), "signed-off", gc); 198 gaim_signal_emit(gaim_connections_get_handle(), "signed-off", gc);
201 199
202 #if 0 200 #if 0
203 /* see comment later in file on if 0'd same code */ 201 /* see comment later in file on if 0'd same code */
204 /* 202 /*
277 gaim_presence_set_login_time(presence, time(NULL)); 275 gaim_presence_set_login_time(presence, time(NULL));
278 276
279 if (gaim_prefs_get_bool("/core/logging/log_system")) 277 if (gaim_prefs_get_bool("/core/logging/log_system"))
280 { 278 {
281 GaimLog *log = gaim_account_get_log(account); 279 GaimLog *log = gaim_account_get_log(account);
282 char *msg = g_strdup_printf("+++ %s signed on", 280 char *msg = g_strdup_printf(_("+++ %s signed on"),
283 gaim_account_get_username(account)); 281 gaim_account_get_username(account));
284 gaim_log_write(log, GAIM_MESSAGE_SYSTEM, 282 gaim_log_write(log, GAIM_MESSAGE_SYSTEM,
285 gaim_account_get_username(account), 283 gaim_account_get_username(account),
286 gaim_presence_get_login_time(presence), 284 gaim_presence_get_login_time(presence),
287 msg); 285 msg);
320 GaimAccount *account = gaim_connection_get_account(gc); 318 GaimAccount *account = gaim_connection_get_account(gc);
321 319
322 if (gaim_prefs_get_bool("/core/logging/log_system")) 320 if (gaim_prefs_get_bool("/core/logging/log_system"))
323 { 321 {
324 GaimLog *log = gaim_account_get_log(account); 322 GaimLog *log = gaim_account_get_log(account);
325 char *msg = g_strdup_printf("+++ %s signed off", 323 char *msg = g_strdup_printf(_("+++ %s signed off"),
326 gaim_account_get_username(account)); 324 gaim_account_get_username(account));
327 gaim_log_write(log, GAIM_MESSAGE_SYSTEM, 325 gaim_log_write(log, GAIM_MESSAGE_SYSTEM,
328 gaim_account_get_username(account), time(NULL), 326 gaim_account_get_username(account), time(NULL),
329 msg); 327 msg);
330 g_free(msg); 328 g_free(msg);