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:
parent
500ee2cf19
commit
9b865f9b02
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user