diff options
author | James Booth <boothj5@gmail.com> | 2012-12-01 00:23:47 +0000 |
---|---|---|
committer | James Booth <boothj5@gmail.com> | 2012-12-01 00:23:47 +0000 |
commit | f7d0bcba4c4d4132104ed84273e8a3bf7c8ce2a5 (patch) | |
tree | 3dc7e17aad660948216fada0c16af9eb5772172d | |
parent | 72d8a82f512d82a0325797396950c25c9d192e40 (diff) | |
download | profani-tty-f7d0bcba4c4d4132104ed84273e8a3bf7c8ce2a5.tar.gz |
More useful console message on auto away
-rw-r--r-- | src/profanity.c | 6 |
1 files 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(); } |