Mercurial > pidgin.yaz
diff src/idle.c @ 5211:0241d6b6702d
[gaim-migrate @ 5581]
Wrote a new debugging API, and of course core/ui split it. Debug statements
can now have debug levels and categories, for future filtering of stuff,
and color highlighting. It's nifty, m'kay?
committer: Tailor Script <tailor@pidgin.im>
author | Christian Hammond <chipx86@chipx86.com> |
---|---|
date | Sat, 26 Apr 2003 06:46:08 +0000 |
parents | fefad67de2c7 |
children | 80e4ba770f97 |
line wrap: on
line diff
--- a/src/idle.c Sat Apr 26 05:31:26 2003 +0000 +++ b/src/idle.c Sat Apr 26 06:46:08 2003 +0000 @@ -80,7 +80,8 @@ if ((away_options & OPT_AWAY_AUTO) && (idle_time > (60 * auto_away)) && (!gc->is_auto_away)) { if (!gc->away) { - debug_printf("making %s away automatically\n", gc->username); + gaim_debug(GAIM_DEBUG_INFO, "idle", + "Making %s away automatically\n", gc->username); if (g_slist_length(connections) == 1) do_away_message(NULL, default_away); else if (default_away) @@ -96,13 +97,16 @@ } gc->is_auto_away = 0; if (awaymessage == NULL) { - debug_printf("removing auto-away message for %s\n", gc->username); + gaim_debug(GAIM_DEBUG_INFO, "idle", + "Removing auto-away message for %s\n", gc->username); serv_set_away(gc, GAIM_AWAY_CUSTOM, NULL); } else { if (g_slist_length(connections) == 1) do_im_back(0, 0); else { - debug_printf("replacing auto-away with global for %s\n", gc->username); + gaim_debug(GAIM_DEBUG_INFO, "idle", + "Replacing auto-away with global for %s\n", + gc->username); serv_set_away(gc, GAIM_AWAY_CUSTOM, awaymessage->message); } } @@ -117,12 +121,14 @@ } if (idle_time >= IDLEMARK && !gc->is_idle) { - debug_printf("setting %s idle %d seconds\n", gc->username, idle_time); + gaim_debug(GAIM_DEBUG_INFO, "idle", "Setting %s idle %d seconds\n", + gc->username, idle_time); serv_set_idle(gc, idle_time); gc->is_idle = 1; system_log(log_idle, gc, NULL, OPT_LOG_BUDDY_IDLE | OPT_LOG_MY_SIGNON); } else if (idle_time < IDLEMARK && gc->is_idle) { - debug_printf("setting %s unidle\n", gc->username); + gaim_debug(GAIM_DEBUG_INFO, "idle", "Setting %s unidle\n", + gc->username); serv_touch_idle(gc); system_log(log_unidle, gc, NULL, OPT_LOG_BUDDY_IDLE | OPT_LOG_MY_SIGNON); }