From b1b6c6f62d69fb366fb347cb7e78a7791107f456 Mon Sep 17 00:00:00 2001 From: Steffen Jaeckel Date: Mon, 5 Dec 2022 10:25:57 +0100 Subject: add `/strophe` command to modify libstrophe-specific settings Signed-off-by: Steffen Jaeckel --- src/command/cmd_defs.c | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) (limited to 'src/command/cmd_defs.c') diff --git a/src/command/cmd_defs.c b/src/command/cmd_defs.c index 0a2a7440..e65e2f00 100644 --- a/src/command/cmd_defs.c +++ b/src/command/cmd_defs.c @@ -2862,6 +2862,25 @@ static struct cmd_t command_defs[] = { "/mood set amazed", "/mood clear") }, + + { "/strophe", + parse_args, 2, 2, &cons_strophe_setting, + CMD_NOSUBFUNCS + CMD_MAINFUNC(cmd_strophe) + CMD_TAGS( + CMD_TAG_CONNECTION) + CMD_SYN( + "/strophe verbosity 0-3", + "/strophe sm on|no-resend|off") + CMD_DESC( + "Modify libstrophe settings.") + CMD_ARGS( + { "verbosity 0-3", "Set libstrophe verbosity level when log level is 'DEBUG'." }, + { "sm on|no-resend|off", "Enable or disable Stream-Management (SM) as of XEP-0198. The 'no-resend' option enables SM, but won't re-send un-ACK'ed messages on re-connect." }) + CMD_EXAMPLES( + "/strophe verbosity 3", + "/strophe sm no-resend") + }, // NEXT-COMMAND (search helper) }; -- cgit 1.4.1-2-gfad0