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 22:14:26 +0100
committerJames Booth <boothj5@gmail.com>2014-05-24 22:14:26 +0100
commitb36fbe413a4a95c1ae75b99ca5d8cbde709bad6f (patch)
tree10cd01af29e671e79116ddd09b426d582aa11a1e /src/config
parentb25b3f318036e6b14d52fef5a4f418a36d9b5a64 (diff)
downloadprofani-tty-b36fbe413a4a95c1ae75b99ca5d8cbde709bad6f.tar.gz
Added settings to show message text in notifications
Diffstat (limited to 'src/config')
-rw-r--r--src/config/preferences.c6
-rw-r--r--src/config/preferences.h2
2 files changed, 8 insertions, 0 deletions
diff --git a/src/config/preferences.c b/src/config/preferences.c
index c5dd75b7..32473848 100644
--- a/src/config/preferences.c
+++ b/src/config/preferences.c
@@ -403,8 +403,10 @@ _get_group(preference_t pref)
         case PREF_NOTIFY_TYPING_CURRENT:
         case PREF_NOTIFY_MESSAGE:
         case PREF_NOTIFY_MESSAGE_CURRENT:
+        case PREF_NOTIFY_MESSAGE_TEXT:
         case PREF_NOTIFY_ROOM:
         case PREF_NOTIFY_ROOM_CURRENT:
+        case PREF_NOTIFY_ROOM_TEXT:
         case PREF_NOTIFY_INVITE:
         case PREF_NOTIFY_SUB:
             return PREF_GROUP_NOTIFICATIONS;
@@ -471,10 +473,14 @@ _get_key(preference_t pref)
             return "message";
         case PREF_NOTIFY_MESSAGE_CURRENT:
             return "message.current";
+        case PREF_NOTIFY_MESSAGE_TEXT:
+            return "message.text";
         case PREF_NOTIFY_ROOM:
             return "room";
         case PREF_NOTIFY_ROOM_CURRENT:
             return "room.current";
+        case PREF_NOTIFY_ROOM_TEXT:
+            return "room.text";
         case PREF_NOTIFY_INVITE:
             return "invite";
         case PREF_NOTIFY_SUB:
diff --git a/src/config/preferences.h b/src/config/preferences.h
index 66d0d41c..3de860d2 100644
--- a/src/config/preferences.h
+++ b/src/config/preferences.h
@@ -55,8 +55,10 @@ typedef enum {
     PREF_NOTIFY_TYPING_CURRENT,
     PREF_NOTIFY_MESSAGE,
     PREF_NOTIFY_MESSAGE_CURRENT,
+    PREF_NOTIFY_MESSAGE_TEXT,
     PREF_NOTIFY_ROOM,
     PREF_NOTIFY_ROOM_CURRENT,
+    PREF_NOTIFY_ROOM_TEXT,
     PREF_NOTIFY_INVITE,
     PREF_NOTIFY_SUB,
     PREF_CHLOG,