about summary refs log tree commit diff stats
path: root/src/config
diff options
context:
space:
mode:
authorJames Booth <boothj5@gmail.com>2014-05-24 20:46:03 +0100
committerJames Booth <boothj5@gmail.com>2014-05-24 20:46:03 +0100
commiteb0f0dd96b368424a1f2344d23c67c1e8934aae4 (patch)
tree64bb48f605fc9b0e67e05470246e3d0403f2fe9a /src/config
parent8e14946aada9708c2c20c6e512ee7b0cf5767689 (diff)
downloadprofani-tty-eb0f0dd96b368424a1f2344d23c67c1e8934aae4.tar.gz
Added settings for message notifications in current window
Diffstat (limited to 'src/config')
-rw-r--r--src/config/preferences.c8
-rw-r--r--src/config/preferences.h2
2 files changed, 10 insertions, 0 deletions
diff --git a/src/config/preferences.c b/src/config/preferences.c
index 900a68af..eb32d558 100644
--- a/src/config/preferences.c
+++ b/src/config/preferences.c
@@ -401,7 +401,9 @@ _get_group(preference_t pref)
             return PREF_GROUP_CHATSTATES;
         case PREF_NOTIFY_TYPING:
         case PREF_NOTIFY_MESSAGE:
+        case PREF_NOTIFY_MESSAGE_CURRENT:
         case PREF_NOTIFY_ROOM:
+        case PREF_NOTIFY_ROOM_CURRENT:
         case PREF_NOTIFY_INVITE:
         case PREF_NOTIFY_SUB:
             return PREF_GROUP_NOTIFICATIONS;
@@ -464,8 +466,12 @@ _get_key(preference_t pref)
             return "typing";
         case PREF_NOTIFY_MESSAGE:
             return "message";
+        case PREF_NOTIFY_MESSAGE_CURRENT:
+            return "message.current";
         case PREF_NOTIFY_ROOM:
             return "room";
+        case PREF_NOTIFY_ROOM_CURRENT:
+            return "room.current";
         case PREF_NOTIFY_INVITE:
             return "invite";
         case PREF_NOTIFY_SUB:
@@ -507,6 +513,8 @@ _get_default_boolean(preference_t pref)
         case PREF_AUTOAWAY_CHECK:
         case PREF_LOG_ROTATE:
         case PREF_LOG_SHARED:
+        case PREF_NOTIFY_MESSAGE_CURRENT:
+        case PREF_NOTIFY_ROOM_CURRENT:
             return TRUE;
         default:
             return FALSE;
diff --git a/src/config/preferences.h b/src/config/preferences.h
index e5d54d8a..75a4c576 100644
--- a/src/config/preferences.h
+++ b/src/config/preferences.h
@@ -53,7 +53,9 @@ typedef enum {
     PREF_OUTTYPE,
     PREF_NOTIFY_TYPING,
     PREF_NOTIFY_MESSAGE,
+    PREF_NOTIFY_MESSAGE_CURRENT,
     PREF_NOTIFY_ROOM,
+    PREF_NOTIFY_ROOM_CURRENT,
     PREF_NOTIFY_INVITE,
     PREF_NOTIFY_SUB,
     PREF_CHLOG,