about summary refs log tree commit diff stats
path: root/src/config/preferences.c
diff options
context:
space:
mode:
authorJames Booth <boothj5@gmail.com>2016-05-15 00:55:19 +0100
committerJames Booth <boothj5@gmail.com>2016-05-15 00:55:19 +0100
commitd00615beba0e9f6d463b821c3a9406e412ebbfe2 (patch)
treef9edbce11180c78b8fac769b11c0582a06351207 /src/config/preferences.c
parentcf8452d95f7a172f0609cd2f647f23a52aeb62d1 (diff)
downloadprofani-tty-d00615beba0e9f6d463b821c3a9406e412ebbfe2.tar.gz
Add /tray read on|off command
issue #786
Diffstat (limited to 'src/config/preferences.c')
-rw-r--r--src/config/preferences.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/config/preferences.c b/src/config/preferences.c
index 72cf0400..afbde809 100644
--- a/src/config/preferences.c
+++ b/src/config/preferences.c
@@ -1242,6 +1242,7 @@ _get_group(preference_t pref)
         case PREF_NOTIFY_MENTION_CASE_SENSITIVE:
         case PREF_NOTIFY_MENTION_WHOLE_WORD:
         case PREF_TRAY:
+        case PREF_TRAY_READ:
             return PREF_GROUP_NOTIFICATIONS;
         case PREF_CHLOG:
         case PREF_GRLOG:
@@ -1294,6 +1295,8 @@ _get_key(preference_t pref)
             return "flash";
         case PREF_TRAY:
             return "tray";
+        case PREF_TRAY_READ:
+            return "tray.read";
         case PREF_INTYPE:
             return "intype";
         case PREF_HISTORY:
@@ -1507,6 +1510,7 @@ _get_default_boolean(preference_t pref)
         case PREF_TLS_SHOW:
         case PREF_LASTACTIVITY:
         case PREF_NOTIFY_MENTION_WHOLE_WORD:
+        case PREF_TRAY_READ:
             return TRUE;
         default:
             return FALSE;