1
0
mirror of https://github.com/profanity-im/profanity.git synced 2024-11-03 19:37:16 -05:00

More useful console message on auto away

This commit is contained in:
James Booth 2012-12-01 00:23:47 +00:00
parent 72d8a82f51
commit f7d0bcba4c

View File

@ -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();
}