Fixed help and command line completion.

git-svn-id: http://yate.null.ro/svn/yate/trunk@1678 acf43c95-373e-0410-b603-e72c3f656dc1
This commit is contained in:
paulc 2008-01-25 18:19:03 +00:00
parent 154857c343
commit 5afbf2744b
1 changed files with 4 additions and 2 deletions

View File

@ -310,8 +310,10 @@ void completeModule(String& ret, const String& part, const String& rpath = Strin
// perform command line completion
void EngineCommand::doCompletion(Message &msg, const String& partLine, const String& partWord)
{
if (partLine.null() || (partLine == "help") || (partLine == "status"))
if (partLine.null() || (partLine == "help"))
completeOne(msg.retValue(),"module",partWord);
else if (partLine == "status")
completeOne(msg.retValue(),"engine",partWord);
else if (partLine == "module") {
completeOne(msg.retValue(),"load",partWord);
completeOne(msg.retValue(),"unload",partWord);
@ -397,7 +399,7 @@ bool EngineHelp::received(Message &msg)
msg.retValue() << s_cmdsOpt;
return false;
}
if (line != "engine")
if (line != "module")
return false;
msg.retValue() << s_cmdsOpt << s_cmdsMsg;
return true;