about summary refs log tree commit diff stats
path: root/src/config
diff options
context:
space:
mode:
authorJames Booth <boothj5@gmail.com>2014-10-18 20:22:34 +0100
committerJames Booth <boothj5@gmail.com>2014-10-18 20:22:34 +0100
commitfc049c9eefd740fdc2a9a271150cbcca5d7b2022 (patch)
tree4a559b577322f819ae626aeea966fd778400dbd2 /src/config
parent0cc25e1b763cbf396a0bb397183761fc7399b4fe (diff)
downloadprofani-tty-fc049c9eefd740fdc2a9a271150cbcca5d7b2022.tar.gz
Added /privileges command to set UI option for showing roles/affiliations in rooms
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 c80b580f..cad30cfb 100644
--- a/src/config/preferences.c
+++ b/src/config/preferences.c
@@ -436,6 +436,7 @@ _get_group(preference_t pref)
         case PREF_STATUSES_CONSOLE:
         case PREF_STATUSES_CHAT:
         case PREF_STATUSES_MUC:
+        case PREF_MUC_PRIVILEGES:
             return PREF_GROUP_UI;
         case PREF_STATES:
         case PREF_OUTTYPE:
@@ -496,6 +497,8 @@ _get_key(preference_t pref)
             return "mouse";
         case PREF_OCCUPANTS:
             return "occupants";
+        case PREF_MUC_PRIVILEGES:
+            return "privileges";
         case PREF_STATUSES:
             return "statuses";
         case PREF_STATUSES_CONSOLE:
@@ -570,6 +573,7 @@ _get_default_boolean(preference_t pref)
         case PREF_NOTIFY_TYPING_CURRENT:
         case PREF_SPLASH:
         case PREF_OCCUPANTS:
+        case PREF_MUC_PRIVILEGES:
             return TRUE;
         default:
             return FALSE;
diff --git a/src/config/preferences.h b/src/config/preferences.h
index 2acb7c2e..528d9661 100644
--- a/src/config/preferences.h
+++ b/src/config/preferences.h
@@ -58,6 +58,7 @@ typedef enum {
     PREF_HISTORY,
     PREF_MOUSE,
     PREF_OCCUPANTS,
+    PREF_MUC_PRIVILEGES,
     PREF_STATUSES,
     PREF_STATUSES_CONSOLE,
     PREF_STATUSES_CHAT,