about summary refs log tree commit diff stats
path: root/src/ui
diff options
context:
space:
mode:
authorJames Booth <boothj5@gmail.com>2015-11-29 00:08:49 +0000
committerJames Booth <boothj5@gmail.com>2015-11-29 00:08:49 +0000
commit3fbee4023e763cb696027ef68d80b91ffcce94e7 (patch)
tree31b79b7c728e4481cb1a9b8c4c7f9ad6633882ec /src/ui
parent04ad003e111a0433373bd3b2a06c727e119b407a (diff)
downloadprofani-tty-3fbee4023e763cb696027ef68d80b91ffcce94e7.tar.gz
Renamed /notify message -> /notify chat
Diffstat (limited to 'src/ui')
-rw-r--r--src/ui/chatwin.c2
-rw-r--r--src/ui/console.c141
-rw-r--r--src/ui/privwin.c2
3 files changed, 73 insertions, 72 deletions
diff --git a/src/ui/chatwin.c b/src/ui/chatwin.c
index 84e4a40a..2875256d 100644
--- a/src/ui/chatwin.c
+++ b/src/ui/chatwin.c
@@ -290,7 +290,7 @@ chatwin_incoming_msg(ProfChatWin *chatwin, const char *const resource, const cha
         ui_index = 0;
     }
 
-    if (prefs_get_boolean(PREF_NOTIFY_MESSAGE_TEXT)) {
+    if (prefs_get_boolean(PREF_NOTIFY_CHAT_TEXT)) {
         notify_message(display_name, ui_index, message);
     } else {
         notify_message(display_name, ui_index, NULL);
diff --git a/src/ui/console.c b/src/ui/console.c
index 5532dfe1..775fa671 100644
--- a/src/ui/console.c
+++ b/src/ui/console.c
@@ -1323,77 +1323,78 @@ cons_show_ui_prefs(void)
 void
 cons_notify_setting(void)
 {
-    if (is_notify_enabled()) {
-        if (prefs_get_boolean(PREF_NOTIFY_MESSAGE))
-            cons_show("Messages (/notify message)          : ON");
-        else
-            cons_show("Messages (/notify message)          : OFF");
-
-        if (prefs_get_boolean(PREF_NOTIFY_MESSAGE_CURRENT))
-            cons_show("Messages current (/notify message)  : ON");
-        else
-            cons_show("Messages current (/notify message)  : OFF");
-
-        if (prefs_get_boolean(PREF_NOTIFY_MESSAGE_TEXT))
-            cons_show("Messages text (/notify message)     : ON");
-        else
-            cons_show("Messages text (/notify message)     : OFF");
-
-        if (prefs_get_boolean(PREF_NOTIFY_ROOM))
-            cons_show("Room messages (/notify room)        : ON");
-        else
-            cons_show("Room messages (/notify room)        : OFF");
-
-        if (prefs_get_boolean(PREF_NOTIFY_ROOM_MENTION))
-            cons_show("Room mention (/notify room)         : ON");
-        else
-            cons_show("Room mention (/notify room)         : OFF");
-
-        if (prefs_get_boolean(PREF_NOTIFY_ROOM_TRIGGER))
-            cons_show("Room trigger (/notify room)         : ON");
-        else
-            cons_show("Room trigger (/notify room)         : OFF");
-
-        if (prefs_get_boolean(PREF_NOTIFY_ROOM_CURRENT))
-            cons_show("Room current (/notify room)         : ON");
-        else
-            cons_show("Room current (/notify room)         : OFF");
-
-        if (prefs_get_boolean(PREF_NOTIFY_ROOM_TEXT))
-            cons_show("Room text (/notify room)            : ON");
-        else
-            cons_show("Room text (/notify room)            : OFF");
-
-        if (prefs_get_boolean(PREF_NOTIFY_TYPING))
-            cons_show("Composing (/notify typing)          : ON");
-        else
-            cons_show("Composing (/notify typing)          : OFF");
-
-        if (prefs_get_boolean(PREF_NOTIFY_TYPING_CURRENT))
-            cons_show("Composing current (/notify typing)  : ON");
-        else
-            cons_show("Composing current (/notify typing)  : OFF");
-
-        if (prefs_get_boolean(PREF_NOTIFY_INVITE))
-            cons_show("Room invites (/notify invite)       : ON");
-        else
-            cons_show("Room invites (/notify invite)       : OFF");
-
-        if (prefs_get_boolean(PREF_NOTIFY_SUB))
-            cons_show("Subscription requests (/notify sub) : ON");
-        else
-            cons_show("Subscription requests (/notify sub) : OFF");
-
-        gint remind_period = prefs_get_notify_remind();
-        if (remind_period == 0) {
-            cons_show("Reminder period (/notify remind)    : OFF");
-        } else if (remind_period == 1) {
-            cons_show("Reminder period (/notify remind)    : 1 second");
-        } else {
-            cons_show("Reminder period (/notify remind)    : %d seconds", remind_period);
-        }
-    } else {
+    if (!is_notify_enabled()) {
         cons_show("Notification support was not included in this build.");
+        return;
+    }
+
+    if (prefs_get_boolean(PREF_NOTIFY_CHAT))
+        cons_show("Chat message (/notify chat)         : ON");
+    else
+        cons_show("Chat message (/notify chat)         : OFF");
+
+    if (prefs_get_boolean(PREF_NOTIFY_CHAT_CURRENT))
+        cons_show("Chat current (/notify chat)         : ON");
+    else
+        cons_show("Chat current (/notify chat)         : OFF");
+
+    if (prefs_get_boolean(PREF_NOTIFY_CHAT_TEXT))
+        cons_show("Chat text (/notify chat)            : ON");
+    else
+        cons_show("Chat text (/notify chat)            : OFF");
+
+    if (prefs_get_boolean(PREF_NOTIFY_ROOM))
+        cons_show("Room message (/notify room)         : ON");
+    else
+        cons_show("Room message (/notify room)         : OFF");
+
+    if (prefs_get_boolean(PREF_NOTIFY_ROOM_MENTION))
+        cons_show("Room mention (/notify room)         : ON");
+    else
+        cons_show("Room mention (/notify room)         : OFF");
+
+    if (prefs_get_boolean(PREF_NOTIFY_ROOM_TRIGGER))
+        cons_show("Room trigger (/notify room)         : ON");
+    else
+        cons_show("Room trigger (/notify room)         : OFF");
+
+    if (prefs_get_boolean(PREF_NOTIFY_ROOM_CURRENT))
+        cons_show("Room current (/notify room)         : ON");
+    else
+        cons_show("Room current (/notify room)         : OFF");
+
+    if (prefs_get_boolean(PREF_NOTIFY_ROOM_TEXT))
+        cons_show("Room text (/notify room)            : ON");
+    else
+        cons_show("Room text (/notify room)            : OFF");
+
+    if (prefs_get_boolean(PREF_NOTIFY_TYPING))
+        cons_show("Composing (/notify typing)          : ON");
+    else
+        cons_show("Composing (/notify typing)          : OFF");
+
+    if (prefs_get_boolean(PREF_NOTIFY_TYPING_CURRENT))
+        cons_show("Composing current (/notify typing)  : ON");
+    else
+        cons_show("Composing current (/notify typing)  : OFF");
+
+    if (prefs_get_boolean(PREF_NOTIFY_INVITE))
+        cons_show("Room invites (/notify invite)       : ON");
+    else
+        cons_show("Room invites (/notify invite)       : OFF");
+
+    if (prefs_get_boolean(PREF_NOTIFY_SUB))
+        cons_show("Subscription requests (/notify sub) : ON");
+    else
+        cons_show("Subscription requests (/notify sub) : OFF");
+
+    gint remind_period = prefs_get_notify_remind();
+    if (remind_period == 0) {
+        cons_show("Reminder period (/notify remind)    : OFF");
+    } else if (remind_period == 1) {
+        cons_show("Reminder period (/notify remind)    : 1 second");
+    } else {
+        cons_show("Reminder period (/notify remind)    : %d seconds", remind_period);
     }
 }
 
diff --git a/src/ui/privwin.c b/src/ui/privwin.c
index 06e89ce3..204335bd 100644
--- a/src/ui/privwin.c
+++ b/src/ui/privwin.c
@@ -91,7 +91,7 @@ privwin_incoming_msg(ProfPrivateWin *privatewin, const char *const message, GDat
         ui_index = 0;
     }
 
-    if (prefs_get_boolean(PREF_NOTIFY_MESSAGE_TEXT)) {
+    if (prefs_get_boolean(PREF_NOTIFY_CHAT_TEXT)) {
         notify_message(display_from, ui_index, message);
     } else {
         notify_message(display_from, ui_index, NULL);