| 1323 old_idle, idle); |
1323 old_idle, idle); |
| 1324 } |
1324 } |
| 1325 } |
1325 } |
| 1326 else if(gaim_presence_get_context(presence) == GAIM_PRESENCE_CONTEXT_ACCOUNT) |
1326 else if(gaim_presence_get_context(presence) == GAIM_PRESENCE_CONTEXT_ACCOUNT) |
| 1327 { |
1327 { |
| 1328 GaimConnection *gc = |
1328 GaimAccount *account; |
| 1329 gaim_account_get_connection(gaim_presence_get_account(presence)); |
1329 GaimLog *log; |
| |
1330 char *msg; |
| |
1331 GaimConnection *gc; |
| 1330 GaimPluginProtocolInfo *prpl_info = NULL; |
1332 GaimPluginProtocolInfo *prpl_info = NULL; |
| |
1333 |
| |
1334 account = gaim_presence_get_account(presence); |
| |
1335 log = gaim_account_get_log(account); |
| |
1336 |
| |
1337 if (idle) |
| |
1338 msg = g_strdup_printf(_("+++ %s became idle"), gaim_account_get_username(account)); |
| |
1339 else |
| |
1340 msg = g_strdup_printf(_("+++ %s became unidle"), gaim_account_get_username(account)); |
| |
1341 gaim_log_write(log, GAIM_MESSAGE_SYSTEM, |
| |
1342 gaim_account_get_username(account), |
| |
1343 idle_time, msg); |
| |
1344 g_free(msg); |
| |
1345 |
| |
1346 gc = gaim_account_get_connection(account); |
| 1331 |
1347 |
| 1332 if (gc != NULL && gc->prpl != NULL) |
1348 if (gc != NULL && gc->prpl != NULL) |
| 1333 prpl_info = GAIM_PLUGIN_PROTOCOL_INFO(gc->prpl); |
1349 prpl_info = GAIM_PLUGIN_PROTOCOL_INFO(gc->prpl); |
| 1334 |
1350 |
| 1335 if (prpl_info && g_list_find(gaim_connections_get_all(), gc) && |
1351 if (prpl_info && g_list_find(gaim_connections_get_all(), gc) && |
| 1655 |
1671 |
| 1656 gaim_prefs_add_none("/core/status"); |
1672 gaim_prefs_add_none("/core/status"); |
| 1657 gaim_prefs_add_none("/core/status/scores"); |
1673 gaim_prefs_add_none("/core/status/scores"); |
| 1658 |
1674 |
| 1659 gaim_prefs_add_string("/core/status/current", _("Default")); |
1675 gaim_prefs_add_string("/core/status/current", _("Default")); |
| 1660 gaim_prefs_add_string("/core/status/idleaway", _("Default auto-away")); |
1676 gaim_prefs_add_string("/core/status/idleaway", _("Default when idle")); |
| 1661 |
1677 |
| 1662 gaim_prefs_add_int("/core/status/scores/offline", |
1678 gaim_prefs_add_int("/core/status/scores/offline", |
| 1663 primitive_scores[GAIM_STATUS_OFFLINE]); |
1679 primitive_scores[GAIM_STATUS_OFFLINE]); |
| 1664 gaim_prefs_add_int("/core/status/scores/available", |
1680 gaim_prefs_add_int("/core/status/scores/available", |
| 1665 primitive_scores[GAIM_STATUS_AVAILABLE]); |
1681 primitive_scores[GAIM_STATUS_AVAILABLE]); |