From ce7a8c24831954d65d94749a08cb74d1fd2533eb Mon Sep 17 00:00:00 2001 From: Marko Lindqvist Date: Thu, 7 Apr 2022 22:38:07 +0300 Subject: [PATCH 34/34] Deprecate /metamessage command See osdn #44107 Signed-off-by: Marko Lindqvist --- server/commands.c | 3 ++- server/stdinhand.c | 4 ++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/server/commands.c b/server/commands.c index 8c15f09049..c2282c0359 100644 --- a/server/commands.c +++ b/server/commands.c @@ -252,7 +252,8 @@ static struct command commands[] = { /* TRANS: translate text between <> only */ N_("metamessage "), N_("Set metaserver info line."), - N_("Set user defined metaserver info line. If parameter is omitted, " + N_("This command is deprecated. Set metamessage setting directly instead. " + "Command sets user defined metaserver info line. If parameter is omitted, " "previously set metamessage will be removed. For most of the time " "user defined metamessage will be used instead of automatically " "generated messages, if it is available."), NULL, diff --git a/server/stdinhand.c b/server/stdinhand.c index 50ae40614e..f25c65b1da 100644 --- a/server/stdinhand.c +++ b/server/stdinhand.c @@ -27,6 +27,7 @@ /* utility */ #include "astring.h" #include "bitvector.h" +#include "deprecations.h" #include "fc_cmdline.h" #include "fciconv.h" #include "fcintl.h" @@ -605,6 +606,9 @@ static bool metamessage_command(struct connection *caller, { struct setting *pset; + log_deprecation(_("/metamessage command is deprecated. " + "Set metamessage setting instead.")); + if (check) { return TRUE; } -- 2.35.1