From c89fc4223a27cfbb832fb232c6eb99eba6c22435 Mon Sep 17 00:00:00 2001 From: SticklyMan Date: Sun, 11 Feb 2018 01:45:46 -0700 Subject: [PATCH] Directly call routedCommandCallback on hookRoute instead of routing through concommands. --- lua/ulib/shared/commands.lua | 7 +++---- ulib.build | 2 +- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/lua/ulib/shared/commands.lua b/lua/ulib/shared/commands.lua index b9ab1ce..238df60 100644 --- a/lua/ulib/shared/commands.lua +++ b/lua/ulib/shared/commands.lua @@ -1370,10 +1370,9 @@ if SERVER then local function hookRoute( ply, command, argv ) if #argv > 0 then - local arg1 = table.remove( argv, 1 ) - local commandTable, _ = concommand.GetTable() - if commandTable[arg1] ~= nil then - concommand.Run( ply, arg1, argv ) + local commandName = table.remove( argv, 1 ) + if routedCmds[ commandName:lower() ] then + routedCommandCallback( ply, commandName, argv ) end end end diff --git a/ulib.build b/ulib.build index 28fc8aa..12e063d 100644 --- a/ulib.build +++ b/ulib.build @@ -1 +1 @@ -1517743950 +1518338747