1
0

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:
madmaxoft
2013-07-31 11:16:11 +02:00
parent e9f18f8b4f
commit e8a907d89e
4 changed files with 30 additions and 16 deletions

View File

@@ -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;