diff options
author | James Booth <boothj5@gmail.com> | 2016-05-23 23:53:44 +0100 |
---|---|---|
committer | James Booth <boothj5@gmail.com> | 2016-05-23 23:53:44 +0100 |
commit | 6559263b2fed1edc6b004dc3e50697600e450b9b (patch) | |
tree | 7b17f7d326ada6abb958e362fd76c8b4abc019f7 /src/config | |
parent | 0edd4309257a8372761f44cbd576b027d1b9766c (diff) | |
download | profani-tty-6559263b2fed1edc6b004dc3e50697600e450b9b.tar.gz |
Option to bookmark room invites
issue #813
Diffstat (limited to 'src/config')
-rw-r--r-- | src/config/preferences.c | 6 | ||||
-rw-r--r-- | src/config/preferences.h | 1 |
2 files changed, 7 insertions, 0 deletions
diff --git a/src/config/preferences.c b/src/config/preferences.c index 5d3d0512..9381d014 100644 --- a/src/config/preferences.c +++ b/src/config/preferences.c @@ -57,6 +57,7 @@ #define PREF_GROUP_ALIAS "alias" #define PREF_GROUP_OTR "otr" #define PREF_GROUP_PGP "pgp" +#define PREF_GROUP_MUC "muc" #define INPBLOCK_DEFAULT 1000 @@ -1286,6 +1287,8 @@ _get_group(preference_t pref) return PREF_GROUP_OTR; case PREF_PGP_LOG: return PREF_GROUP_PGP; + case PREF_BOOKMARK_INVITE: + return PREF_GROUP_MUC; default: return NULL; } @@ -1484,6 +1487,8 @@ _get_key(preference_t pref) return "console.private"; case PREF_CONSOLE_CHAT: return "console.chat"; + case PREF_BOOKMARK_INVITE: + return "bookmark.invite"; default: return NULL; } @@ -1530,6 +1535,7 @@ _get_default_boolean(preference_t pref) case PREF_LASTACTIVITY: case PREF_NOTIFY_MENTION_WHOLE_WORD: case PREF_TRAY_READ: + case PREF_BOOKMARK_INVITE: return TRUE; default: return FALSE; diff --git a/src/config/preferences.h b/src/config/preferences.h index 5e4b28ef..a7b84dfe 100644 --- a/src/config/preferences.h +++ b/src/config/preferences.h @@ -140,6 +140,7 @@ typedef enum { PREF_CONSOLE_MUC, PREF_CONSOLE_PRIVATE, PREF_CONSOLE_CHAT, + PREF_BOOKMARK_INVITE, } preference_t; typedef struct prof_alias_t { |