Core/Chat: fix RBAC_PERM_COMMANDS_NOTIFY_COMMAND_NOT_FOUND_ERROR for subcommands
This commit is contained in:
@@ -107,6 +107,9 @@ namespace Game.Chat
|
||||
string arg = args.NextString("");
|
||||
if (!ExecuteCommandInTable(command.ChildCommands, arg, fullcmd))
|
||||
{
|
||||
if (_session != null && !_session.HasPermission(RBACPermissions.CommandsNotifyCommandNotFoundError))
|
||||
return false;
|
||||
|
||||
if (!arg.IsEmpty())
|
||||
SendSysMessage(CypherStrings.NoSubcmd);
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user