add /stamp command

command allow override standard stamps of incoming and outgoing messages
This commit is contained in:
Artjom Vejsel
2022-03-29 20:34:34 +03:00
parent abfab2aff7
commit 2c003dd2e1
7 changed files with 97 additions and 2 deletions

View File

@@ -2411,6 +2411,30 @@ static struct cmd_t command_defs[] = {
"/color own off")
},
{ "/stamp",
parse_args, 0, 2, NULL,
CMD_NOSUBFUNCS
CMD_MAINFUNC(cmd_stamp)
CMD_TAGS(
CMD_TAG_UI)
CMD_SYN(
"/stamp outgoing <string>",
"/stamp incoming <string>",
"/stamp unset outgoing|incoming")
CMD_DESC(
"Set chat window stamp values. "
"Current format of single log-line in the chat window next: \"<timestamp> <encryption sign> <stamp> <message>\" "
"where <stamp> is \"me:\" for incoming messages or \"username@server/resource\" for outcoming messages. "
"This command allows to change <stamp> value.")
CMD_ARGS(
{ "outgoing", "Set outgoing messages stamp" },
{ "incoming", "Set incoming stamp"},
{ "unset outgoing|incoming", "unset stamp"})
CMD_EXAMPLES(
"/stamp outgoing -->",
"/stamp incoming <--")
},
{ "/avatar",
parse_args, 2, 2, NULL,
CMD_NOSUBFUNCS