Implemented the actual tab completion for commands and playernames.
Each command is reported only if the player has the permission to use it.
This commit is contained in:
@@ -1239,7 +1239,7 @@ void cClientHandle::HandleTabCompletion(const AString & a_Text)
|
||||
{
|
||||
AStringVector Results;
|
||||
m_Player->GetWorld()->TabCompleteUserName(a_Text, Results);
|
||||
cRoot::Get()->GetPluginManager()->TabCompleteCommand(a_Text, Results);
|
||||
cRoot::Get()->GetPluginManager()->TabCompleteCommand(a_Text, Results, m_Player);
|
||||
if (Results.empty())
|
||||
{
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user