Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[chat] ShowHelpForSubCommand don't print command name #23

Closed
ghost opened this issue Nov 1, 2011 · 0 comments
Closed

[chat] ShowHelpForSubCommand don't print command name #23

ghost opened this issue Nov 1, 2011 · 0 comments

Comments

@ghost
Copy link

ghost commented Nov 1, 2011

If you type command who need subcommand like ".modify" without any subcommand then help not contain command name.

First in ChatHandler::ExecuteCommand(const char* text) :
We use

C++

ChatCommandSearchResult res = FindCommand(getCommandTable(), text, command, &parentCommand);

This command modify "text" pointer so we cannot use it to point on current command.
But after somme line :

C++

case CHAT_COMMAND_UNKNOWN_SUBCOMMAND:
        {
            SendSysMessage(LANG_NO_SUBCMD);
            ShowHelpForCommand(command->ChildCommands,text);
            SetSentErrorMessage(true);
            break;
        }
@ghost ghost closed this as completed Nov 1, 2011
@ghost ghost reopened this Nov 14, 2011
@Salja Salja closed this as completed Sep 1, 2012
Schmoozerd added a commit to wow4you/mangos that referenced this issue Nov 9, 2012
Special thanks to Rog360 to narrow the issue down
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant