forked from TeamUlysses/ulib
Directly call routedCommandCallback on hookRoute instead of routing through concommands.
This commit is contained in:
parent
26b0139044
commit
c89fc4223a
@ -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
|
||||
|
@ -1 +1 @@
|
||||
1517743950
|
||||
1518338747
|
||||
|
Loading…
Reference in New Issue
Block a user