about summary refs log tree commit diff stats
path: root/src/config
diff options
context:
space:
mode:
authorJames Booth <boothj5@gmail.com>2016-04-03 23:33:21 +0100
committerJames Booth <boothj5@gmail.com>2016-04-03 23:33:21 +0100
commitafa2c0f5ba5e38c2234c15191ebb0aee41e5833a (patch)
treec942d6599541f7a4c0479f0084e62cd64383e286 /src/config
parentd9344b00fe6d3c77d8e935b7029ac11587e5001f (diff)
downloadprofani-tty-afa2c0f5ba5e38c2234c15191ebb0aee41e5833a.tar.gz
Added mention match preferences
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 968787e3..ce40a321 100644
--- a/src/config/preferences.c
+++ b/src/config/preferences.c
@@ -1230,6 +1230,8 @@ _get_group(preference_t pref)
         case PREF_NOTIFY_ROOM_TEXT:
         case PREF_NOTIFY_INVITE:
         case PREF_NOTIFY_SUB:
+        case PREF_MENTION_CASE_SENSITIVE:
+        case PREF_MENTION_WHOLE_WORD:
             return PREF_GROUP_NOTIFICATIONS;
         case PREF_CHLOG:
         case PREF_GRLOG:
@@ -1332,6 +1334,10 @@ _get_key(preference_t pref)
             return "invite";
         case PREF_NOTIFY_SUB:
             return "sub";
+        case PREF_MENTION_CASE_SENSITIVE:
+            return "room.mention.casesensitive";
+        case PREF_MENTION_WHOLE_WORD:
+            return "room.mention.wholeword";
         case PREF_CHLOG:
             return "chlog";
         case PREF_GRLOG:
@@ -1488,6 +1494,8 @@ _get_default_boolean(preference_t pref)
         case PREF_ROSTER_ROOMS:
         case PREF_TLS_SHOW:
         case PREF_LASTACTIVITY:
+        case PREF_MENTION_CASE_SENSITIVE:
+        case PREF_MENTION_WHOLE_WORD:
             return TRUE;
         default:
             return FALSE;
diff --git a/src/config/preferences.h b/src/config/preferences.h
index 1ab18d31..7165079b 100644
--- a/src/config/preferences.h
+++ b/src/config/preferences.h
@@ -113,6 +113,8 @@ typedef enum {
     PREF_NOTIFY_ROOM_TEXT,
     PREF_NOTIFY_INVITE,
     PREF_NOTIFY_SUB,
+    PREF_MENTION_CASE_SENSITIVE,
+    PREF_MENTION_WHOLE_WORD,
     PREF_CHLOG,
     PREF_GRLOG,
     PREF_AUTOAWAY_CHECK,