about summary refs log tree commit diff stats
path: root/src/config
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/config
parent04ad003e111a0433373bd3b2a06c727e119b407a (diff)
downloadprofani-tty-3fbee4023e763cb696027ef68d80b91ffcce94e7.tar.gz
Renamed /notify message -> /notify chat
Diffstat (limited to 'src/config')
-rw-r--r--src/config/preferences.c20
-rw-r--r--src/config/preferences.h6
2 files changed, 13 insertions, 13 deletions
diff --git a/src/config/preferences.c b/src/config/preferences.c
index 839ab5e6..a343f611 100644
--- a/src/config/preferences.c
+++ b/src/config/preferences.c
@@ -195,7 +195,7 @@ prefs_reset_room_trigger_ac(void)
 gboolean
 prefs_do_chat_notify(gboolean current_win, const char *const message)
 {
-    gboolean notify_current = prefs_get_boolean(PREF_NOTIFY_MESSAGE_CURRENT);
+    gboolean notify_current = prefs_get_boolean(PREF_NOTIFY_CHAT_CURRENT);
     gboolean notify_window = FALSE;
     if (!current_win || (current_win && notify_current) ) {
         notify_window = TRUE;
@@ -204,7 +204,7 @@ prefs_do_chat_notify(gboolean current_win, const char *const message)
         return FALSE;
     }
 
-    gboolean notify_message = prefs_get_boolean(PREF_NOTIFY_MESSAGE);
+    gboolean notify_message = prefs_get_boolean(PREF_NOTIFY_CHAT);
     if (notify_message) {
         return TRUE;
     }
@@ -1022,9 +1022,9 @@ _get_group(preference_t pref)
             return PREF_GROUP_CHATSTATES;
         case PREF_NOTIFY_TYPING:
         case PREF_NOTIFY_TYPING_CURRENT:
-        case PREF_NOTIFY_MESSAGE:
-        case PREF_NOTIFY_MESSAGE_CURRENT:
-        case PREF_NOTIFY_MESSAGE_TEXT:
+        case PREF_NOTIFY_CHAT:
+        case PREF_NOTIFY_CHAT_CURRENT:
+        case PREF_NOTIFY_CHAT_TEXT:
         case PREF_NOTIFY_ROOM:
         case PREF_NOTIFY_ROOM_MENTION:
         case PREF_NOTIFY_ROOM_TRIGGER:
@@ -1114,11 +1114,11 @@ _get_key(preference_t pref)
             return "typing";
         case PREF_NOTIFY_TYPING_CURRENT:
             return "typing.current";
-        case PREF_NOTIFY_MESSAGE:
+        case PREF_NOTIFY_CHAT:
             return "message";
-        case PREF_NOTIFY_MESSAGE_CURRENT:
+        case PREF_NOTIFY_CHAT_CURRENT:
             return "message.current";
-        case PREF_NOTIFY_MESSAGE_TEXT:
+        case PREF_NOTIFY_CHAT_TEXT:
             return "message.text";
         case PREF_NOTIFY_ROOM:
             return "room";
@@ -1236,8 +1236,8 @@ _get_default_boolean(preference_t pref)
         case PREF_AUTOAWAY_CHECK:
         case PREF_LOG_ROTATE:
         case PREF_LOG_SHARED:
-        case PREF_NOTIFY_MESSAGE:
-        case PREF_NOTIFY_MESSAGE_CURRENT:
+        case PREF_NOTIFY_CHAT:
+        case PREF_NOTIFY_CHAT_CURRENT:
         case PREF_NOTIFY_ROOM:
         case PREF_NOTIFY_ROOM_CURRENT:
         case PREF_NOTIFY_TYPING:
diff --git a/src/config/preferences.h b/src/config/preferences.h
index 6c2451a6..b2411906 100644
--- a/src/config/preferences.h
+++ b/src/config/preferences.h
@@ -93,9 +93,9 @@ typedef enum {
     PREF_OUTTYPE,
     PREF_NOTIFY_TYPING,
     PREF_NOTIFY_TYPING_CURRENT,
-    PREF_NOTIFY_MESSAGE,
-    PREF_NOTIFY_MESSAGE_CURRENT,
-    PREF_NOTIFY_MESSAGE_TEXT,
+    PREF_NOTIFY_CHAT,
+    PREF_NOTIFY_CHAT_CURRENT,
+    PREF_NOTIFY_CHAT_TEXT,
     PREF_NOTIFY_ROOM,
     PREF_NOTIFY_ROOM_MENTION,
     PREF_NOTIFY_ROOM_TRIGGER,