diff options
author | James Booth <boothj5@gmail.com> | 2014-05-24 15:54:10 +0100 |
---|---|---|
committer | James Booth <boothj5@gmail.com> | 2014-05-24 15:54:10 +0100 |
commit | 7d90d218c0858ce278c8223fe72c455e3f950732 (patch) | |
tree | 87dee443e5afd20f8b34a12d54b29e1facd33cf3 /src/ui | |
parent | 663a22fb7e3d30255e73aeb220b1157cc35788f6 (diff) | |
download | profani-tty-7d90d218c0858ce278c8223fe72c455e3f950732.tar.gz |
Split regular and chat room notify settings
Diffstat (limited to 'src/ui')
-rw-r--r-- | src/ui/console.c | 5 | ||||
-rw-r--r-- | src/ui/core.c | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/src/ui/console.c b/src/ui/console.c index e29b4eb7..ea106ec8 100644 --- a/src/ui/console.c +++ b/src/ui/console.c @@ -1163,6 +1163,11 @@ _cons_notify_setting(void) else cons_show("Messages (/notify message) : OFF"); + if (prefs_get_boolean(PREF_NOTIFY_ROOM)) + cons_show("Messages (/notify room) : ON"); + else + cons_show("Messages (/notify room) : OFF"); + if (prefs_get_boolean(PREF_NOTIFY_TYPING)) cons_show("Composing (/notify typing) : ON"); else diff --git a/src/ui/core.c b/src/ui/core.c index eec21351..09b12ea0 100644 --- a/src/ui/core.c +++ b/src/ui/core.c @@ -1696,7 +1696,7 @@ _ui_room_message(const char * const room_jid, const char * const nick, if (prefs_get_boolean(PREF_BEEP)) { beep(); } - if (prefs_get_boolean(PREF_NOTIFY_MESSAGE)) { + if (prefs_get_boolean(PREF_NOTIFY_ROOM)) { Jid *jidp = jid_create(room_jid); notify_room_message(nick, jidp->localpart, ui_index); jid_destroy(jidp); |