Core/Chat: fix RBAC_PERM_COMMANDS_NOTIFY_COMMAND_NOT_FOUND_ERROR for subcommands

This commit is contained in:
hondacrx
2018-03-12 14:40:58 -04:00
parent 05ecb41a10
commit b9c1e3876b
3 changed files with 5 additions and 3 deletions
+3
View File
@@ -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