about summary refs log tree commit diff stats
path: root/src/config
diff options
context:
space:
mode:
authorJames Booth <boothj5@gmail.com>2018-02-05 20:01:54 +0000
committerJames Booth <boothj5@gmail.com>2018-02-05 20:01:54 +0000
commit26a182945fcdada1f15e49ba7912f7b8ea88cd87 (patch)
tree9c7895180e8b783248316eae16a2500350514a48 /src/config
parent8db2389df6e1d0bdfda97bee5d2e9b29b87e438d (diff)
downloadprofani-tty-26a182945fcdada1f15e49ba7912f7b8ea88cd87.tar.gz
Add /rooms cache
Diffstat (limited to 'src/config')
-rw-r--r--src/config/preferences.c4
-rw-r--r--src/config/preferences.h1
2 files changed, 5 insertions, 0 deletions
diff --git a/src/config/preferences.c b/src/config/preferences.c
index 65281505..d935061c 100644
--- a/src/config/preferences.c
+++ b/src/config/preferences.c
@@ -1615,6 +1615,7 @@ _get_group(preference_t pref)
         case PREF_PGP_LOG:
             return PREF_GROUP_PGP;
         case PREF_BOOKMARK_INVITE:
+        case PREF_ROOM_LIST_CACHE:
             return PREF_GROUP_MUC;
         case PREF_PLUGINS_SOURCEPATH:
             return PREF_GROUP_PLUGINS;
@@ -1822,6 +1823,8 @@ _get_key(preference_t pref)
             return "bookmark.invite";
         case PREF_PLUGINS_SOURCEPATH:
             return "sourcepath";
+        case PREF_ROOM_LIST_CACHE:
+            return "rooms.cache";
         default:
             return NULL;
     }
@@ -1870,6 +1873,7 @@ _get_default_boolean(preference_t pref)
         case PREF_NOTIFY_MENTION_WHOLE_WORD:
         case PREF_TRAY_READ:
         case PREF_BOOKMARK_INVITE:
+        case PREF_ROOM_LIST_CACHE:
             return TRUE;
         default:
             return FALSE;
diff --git a/src/config/preferences.h b/src/config/preferences.h
index e8f26e52..6eb2241d 100644
--- a/src/config/preferences.h
+++ b/src/config/preferences.h
@@ -143,6 +143,7 @@ typedef enum {
     PREF_CONSOLE_CHAT,
     PREF_BOOKMARK_INVITE,
     PREF_PLUGINS_SOURCEPATH,
+    PREF_ROOM_LIST_CACHE,
 } preference_t;
 
 typedef struct prof_alias_t {