about summary refs log tree commit diff stats
path: root/src/config
diff options
context:
space:
mode:
authorMichael Vetter <jubalh@iodoru.org>2019-12-19 19:14:59 +0100
committerMichael Vetter <jubalh@iodoru.org>2019-12-19 19:14:59 +0100
commit808850c6f5c85b0e173e922b9979ca3a09b4dc31 (patch)
treeef37d004827224fe8662b3b850d21888a950a230 /src/config
parent6d82020a66505e9c58b26091684e5f78ac71d210 (diff)
downloadprofani-tty-808850c6f5c85b0e173e922b9979ca3a09b4dc31.tar.gz
Add /occupants color command
`/occupants color on|off` to enable or disable XEP-0392 also for the
MUC occupants.

Regards
https://github.com/profanity-im/profanity/issues/1191
Diffstat (limited to 'src/config')
-rw-r--r--src/config/preferences.c3
-rw-r--r--src/config/preferences.h1
2 files changed, 4 insertions, 0 deletions
diff --git a/src/config/preferences.c b/src/config/preferences.c
index 8f4c4c45..a7fd4733 100644
--- a/src/config/preferences.c
+++ b/src/config/preferences.c
@@ -1712,6 +1712,7 @@ _get_group(preference_t pref)
         case PREF_CONSOLE_CHAT:
         case PREF_COLOR_NICK:
         case PREF_ROSTER_COLOR_NICK:
+        case PREF_OCCUPANTS_COLOR_NICK:
         case PREF_STATUSBAR_SHOW_NAME:
         case PREF_STATUSBAR_SHOW_NUMBER:
         case PREF_STATUSBAR_SELF:
@@ -1975,6 +1976,8 @@ _get_key(preference_t pref)
             return "color.nick";
         case PREF_ROSTER_COLOR_NICK:
             return "color.roster.nick";
+        case PREF_OCCUPANTS_COLOR_NICK:
+            return "color.occupants.nick";
         case PREF_BOOKMARK_INVITE:
             return "bookmark.invite";
         case PREF_PLUGINS_SOURCEPATH:
diff --git a/src/config/preferences.h b/src/config/preferences.h
index 2f1bf131..845168de 100644
--- a/src/config/preferences.h
+++ b/src/config/preferences.h
@@ -145,6 +145,7 @@ typedef enum {
     PREF_CONSOLE_CHAT,
     PREF_COLOR_NICK,
     PREF_ROSTER_COLOR_NICK,
+    PREF_OCCUPANTS_COLOR_NICK,
     PREF_BOOKMARK_INVITE,
     PREF_PLUGINS_SOURCEPATH,
     PREF_ROOM_LIST_CACHE,