Add /rooms cache

This commit is contained in:
James Booth
2018-02-05 20:01:54 +00:00
parent 8db2389df6
commit 26a182945f
11 changed files with 111 additions and 14 deletions

View File

@@ -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;

View File

@@ -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 {