diff options
author | James Booth <boothj5@gmail.com> | 2012-10-03 22:23:22 +0100 |
---|---|---|
committer | James Booth <boothj5@gmail.com> | 2012-10-03 22:23:22 +0100 |
commit | cf211be2214d86c5709b407d8ec1691740ee0a5c (patch) | |
tree | e47aacd3d655e68dab9f0b269b685d709c1a3f35 /src/windows.c | |
parent | 585d3e52f794ad683418a8efe63c91ec9aa3c80d (diff) | |
download | profani-tty-cf211be2214d86c5709b407d8ec1691740ee0a5c.tar.gz |
Tidied up message remind period on prefs output
Diffstat (limited to 'src/windows.c')
-rw-r--r-- | src/windows.c | 18 |
1 files changed, 8 insertions, 10 deletions
diff --git a/src/windows.c b/src/windows.c index e4542eb9..6bdc17d1 100644 --- a/src/windows.c +++ b/src/windows.c @@ -366,15 +366,6 @@ win_show_outgoing_msg(const char * const from, const char * const to, _win_show_user(win, from, 0); _win_show_message(win, message); _win_switch_if_active(win_index); -/* - status_bar_active(win_index); - - if (win_index == _curr_prof_win) { - dirty = TRUE; - } else { - status_bar_new(win_index); - } -*/ } void @@ -489,7 +480,14 @@ cons_prefs(void) else cons_show("Chat logging : OFF"); - cons_show("Message reminder period : %d seconds", prefs_get_remind()); + gint remind_period = prefs_get_remind(); + if (remind_period == 0) { + cons_show("Message reminder period : OFF"); + } else if (remind_period == 1) { + cons_show("Message reminder period : 1 second"); + } else { + cons_show("Message reminder period : %d seconds", remind_period); + } cons_show(""); |