From 80dd3fdbb2ee8c453f5828d8cacb029d222d3779 Mon Sep 17 00:00:00 2001 From: Michael Vetter Date: Thu, 20 Feb 2020 08:11:58 +0100 Subject: Add option to color MUC history like regular messages `/logging group color` has: * `unanimous` which will color it with one unanimous color. Like it was done always. * `regular` which colors it like regular incoming messages. Regards https://github.com/profanity-im/profanity/issues/1261 --- src/config/preferences.c | 5 +++++ src/config/preferences.h | 1 + 2 files changed, 6 insertions(+) (limited to 'src/config') diff --git a/src/config/preferences.c b/src/config/preferences.c index 52ce5ca9..4b5635a1 100644 --- a/src/config/preferences.c +++ b/src/config/preferences.c @@ -1746,6 +1746,7 @@ _get_group(preference_t pref) case PREF_STATUSBAR_CHAT: case PREF_STATUSBAR_ROOM: case PREF_TITLEBAR_MUC_TITLE: + case PREF_HISTORY_COLOR_MUC: return PREF_GROUP_UI; case PREF_STATES: case PREF_OUTTYPE: @@ -2048,6 +2049,8 @@ _get_key(preference_t pref) return "sendfile"; case PREF_CORRECTION_ALLOW: return "correction.allow"; + case PREF_HISTORY_COLOR_MUC: + return "history.muc.color"; default: return NULL; } @@ -2177,6 +2180,8 @@ _get_default_string(preference_t pref) return "automatic"; case PREF_COLOR_NICK: return "false"; + case PREF_HISTORY_COLOR_MUC: + return "unanimous"; default: return NULL; } diff --git a/src/config/preferences.h b/src/config/preferences.h index 4d04fd7d..7eda87db 100644 --- a/src/config/preferences.h +++ b/src/config/preferences.h @@ -165,6 +165,7 @@ typedef enum { PREF_OMEMO_SENDFILE, PREF_OCCUPANTS_WRAP, PREF_CORRECTION_ALLOW, + PREF_HISTORY_COLOR_MUC, } preference_t; typedef struct prof_alias_t { -- cgit 1.4.1-2-gfad0