diff options
author | Backalor <backalor@backalor.com> | 2013-01-14 18:51:37 +0900 |
---|---|---|
committer | Backalor <backalor@backalor.com> | 2013-01-14 18:51:37 +0900 |
commit | 5356118147f715109f8482b4af4d642bc5f6c4a1 (patch) | |
tree | 69df7fdd4c162dc3d28f21c334ced3e30733a38f /src/windows.c | |
parent | d827abddb7947a4872a20e3e2832cf2ae2f492ef (diff) | |
download | profani-tty-5356118147f715109f8482b4af4d642bc5f6c4a1.tar.gz |
Add new command "/notify status" to enable/disable status messages,
such as users going on/offline or room joining/parting.
Diffstat (limited to 'src/windows.c')
-rw-r--r-- | src/windows.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/windows.c b/src/windows.c index ccba1631..ea3a6815 100644 --- a/src/windows.c +++ b/src/windows.c @@ -1253,6 +1253,11 @@ cons_show_desktop_prefs(void) } else { cons_show("Reminder period (/notify remind) : %d seconds", remind_period); } + + if (prefs_get_notify_status()) + cons_show("Status (/notify status) : ON"); + else + cons_show("Status (/notify status) : OFF"); } void @@ -1966,6 +1971,9 @@ _show_status_string(WINDOW *win, const char * const from, GDateTime *last_activity, const char * const pre, const char * const default_show) { + if (!prefs_get_notify_status()) + return; + _win_show_time(win); if (show != NULL) { |