diff options
author | James Booth <boothj5@gmail.com> | 2016-04-07 01:01:27 +0100 |
---|---|---|
committer | James Booth <boothj5@gmail.com> | 2016-04-07 01:01:27 +0100 |
commit | f243e333fcb6740ff8d09cc04db27d88040f5f7d (patch) | |
tree | 63a10e47de649d46779c081ce84ff7d16f36aa19 /src/config | |
parent | 6edf3b3f94eb81413826e1559ee96be0604f3adf (diff) | |
download | profani-tty-f243e333fcb6740ff8d09cc04db27d88040f5f7d.tar.gz |
Added whole word matches for room mention
Diffstat (limited to 'src/config')
-rw-r--r-- | src/config/preferences.c | 12 | ||||
-rw-r--r-- | src/config/preferences.h | 4 |
2 files changed, 8 insertions, 8 deletions
diff --git a/src/config/preferences.c b/src/config/preferences.c index ce40a321..4957a600 100644 --- a/src/config/preferences.c +++ b/src/config/preferences.c @@ -1230,8 +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: + case PREF_NOTIFY_MENTION_CASE_SENSITIVE: + case PREF_NOTIFY_MENTION_WHOLE_WORD: return PREF_GROUP_NOTIFICATIONS; case PREF_CHLOG: case PREF_GRLOG: @@ -1334,9 +1334,9 @@ _get_key(preference_t pref) return "invite"; case PREF_NOTIFY_SUB: return "sub"; - case PREF_MENTION_CASE_SENSITIVE: + case PREF_NOTIFY_MENTION_CASE_SENSITIVE: return "room.mention.casesensitive"; - case PREF_MENTION_WHOLE_WORD: + case PREF_NOTIFY_MENTION_WHOLE_WORD: return "room.mention.wholeword"; case PREF_CHLOG: return "chlog"; @@ -1494,8 +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: + case PREF_NOTIFY_MENTION_CASE_SENSITIVE: + case PREF_NOTIFY_MENTION_WHOLE_WORD: return TRUE; default: return FALSE; diff --git a/src/config/preferences.h b/src/config/preferences.h index 7165079b..8f18149c 100644 --- a/src/config/preferences.h +++ b/src/config/preferences.h @@ -113,8 +113,8 @@ typedef enum { PREF_NOTIFY_ROOM_TEXT, PREF_NOTIFY_INVITE, PREF_NOTIFY_SUB, - PREF_MENTION_CASE_SENSITIVE, - PREF_MENTION_WHOLE_WORD, + PREF_NOTIFY_MENTION_CASE_SENSITIVE, + PREF_NOTIFY_MENTION_WHOLE_WORD, PREF_CHLOG, PREF_GRLOG, PREF_AUTOAWAY_CHECK, |