1
0
forked from 0ad/0ad

Update message for not supported commands

Tell user about help command, when requested command is not supported

Differential revision: D4229
Reviewed by: @Langbart, @Freagarach
Comments by: @bb
This was SVN commit r25880.
This commit is contained in:
Angen 2021-08-30 18:35:56 +00:00
parent 500ee2cf19
commit 9b865f9b02

View File

@ -29,8 +29,9 @@ class ChatCommandHandler
this.chatMessagesPanel.addText(
Date.now() / 1000,
this.systemMessageFormat.format(
sprintf(translate("The command '%(cmd)s' is not supported."), {
"cmd": setStringTags(escapeText(command), this.ChatCommandTags)
sprintf(translate("The command '%(cmd)s' is not supported. Try %(help)s to get more information about the supported commands."), {
"cmd": setStringTags(escapeText(command), this.ChatCommandTags),
"help": setStringTags(escapeText("/help"), this.ChatCommandTags)
})));
this.chatMessagesPanel.flushMessages();
return true;