From f7d0bcba4c4d4132104ed84273e8a3bf7c8ce2a5 Mon Sep 17 00:00:00 2001 From: James Booth Date: Sat, 1 Dec 2012 00:23:47 +0000 Subject: [PATCH] More useful console message on auto away --- src/profanity.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/profanity.c b/src/profanity.c index 02182b69..27fea803 100644 --- a/src/profanity.c +++ b/src/profanity.c @@ -455,11 +455,13 @@ _handle_idle_time() if (strcmp(prefs_get_autoaway_mode(), "away") == 0) { jabber_update_presence(PRESENCE_AWAY, prefs_get_autoaway_message()); if (prefs_get_autoaway_message() != NULL) { - cons_show("Auto away.\"%s\".", prefs_get_autoaway_message()); + cons_show("Idle for %d minutes, status set to away, \"%s\".", + prefs_get_autoaway_time(), prefs_get_autoaway_message()); title_bar_set_status(PRESENCE_AWAY); win_current_page_off(); } else { - cons_show("Auto away."); + cons_show("Idle for %d minutes, status set to away.", + prefs_get_autoaway_time()); title_bar_set_status(PRESENCE_AWAY); win_current_page_off(); }