about summary refs log tree commit diff stats
path: root/src/command
diff options
context:
space:
mode:
authorMichael Vetter <jubalh@iodoru.org>2020-04-25 17:13:22 +0200
committerMichael Vetter <jubalh@iodoru.org>2020-04-25 17:19:02 +0200
commit85520ecdc5d2e6ac6654817572b8fd99e43e25d9 (patch)
tree6837c17e9a762cf0f11d06ffd9b15a9ce6a34b48 /src/command
parent570863df1b84f022f21f868dbdc4d2b42aebe914 (diff)
downloadprofani-tty-85520ecdc5d2e6ac6654817572b8fd99e43e25d9.tar.gz
Remove unanimous MAM display
For some time users could choose to have the old way "unanimous" where
all the MUC history is just grey (or whatever was set). Now it is always
just displayed like regular new incoming MUC text.
Diffstat (limited to 'src/command')
-rw-r--r--src/command/cmd_defs.c12
-rw-r--r--src/command/cmd_funcs.c6
2 files changed, 4 insertions, 14 deletions
diff --git a/src/command/cmd_defs.c b/src/command/cmd_defs.c
index 18326a81..7cf7b2ef 100644
--- a/src/command/cmd_defs.c
+++ b/src/command/cmd_defs.c
@@ -1610,22 +1610,18 @@ static struct cmd_t command_defs[] =
         CMD_TAGS(
             CMD_TAG_CHAT)
         CMD_SYN(
-            "/logging chat|group on|off",
-            "/logging group color unanimous|regular")
+            "/logging chat|group on|off")
         CMD_DESC(
             "Configure chat logging. "
             "Switch logging on or off. "
             "Chat logging will be enabled if /history is set to on. "
-            "When disabling this option, /history will also be disabled. "
-            "Color MUC history unanimously or like regular MUC messages.")
+            "When disabling this option, /history will also be disabled. ")
         CMD_ARGS(
             { "chat on|off",             "Enable/Disable regular chat logging." },
-            { "group on|off",            "Enable/Disable groupchat (room) logging." },
-            { "group color unanimous|regular", "Color MUC history unanimous or like regular MUC messages." })
+            { "group on|off",            "Enable/Disable groupchat (room) logging." })
         CMD_EXAMPLES(
             "/logging chat on",
-            "/logging group off",
-            "/logging group color regular" )
+            "/logging group off")
     },
 
     { "/states",
diff --git a/src/command/cmd_funcs.c b/src/command/cmd_funcs.c
index 2ad66b5b..e5dc987a 100644
--- a/src/command/cmd_funcs.c
+++ b/src/command/cmd_funcs.c
@@ -6715,12 +6715,6 @@ cmd_logging(ProfWin *window, const char *const command, gchar **args)
         if (g_strcmp0(args[1], "on") == 0 || g_strcmp0(args[1], "off") == 0) {
             _cmd_set_boolean_preference(args[1], command, "Groupchat logging", PREF_GRLOG);
             return TRUE;
-        } else if (strcmp(args[1], "color") == 0 && args[2] != NULL) {
-            if (g_strcmp0(args[2], "unanimous") == 0 || g_strcmp0(args[2], "regular") == 0) {
-                prefs_set_string(PREF_HISTORY_COLOR_MUC, args[2]);
-                cons_show("Groupchat logging color set to: %s", args[2]);
-                return TRUE;
-            }
         }
     }