Fixed ULib.HOOK_COMMAND_CALLED not being called on chat commands. Thanks Adult!

See http://forums.ulyssesmod.net/index.php/topic,5983.0.html
This commit is contained in:
SticklyMan 2013-01-21 18:46:47 -07:00
parent 90272874f3
commit cc5e8a127c

View File

@ -1303,7 +1303,10 @@ if SERVER then
return error( "Say command \"" .. sayCommand .. "\" is not defined!" )
end
sayCmds[ sayCommand ].__fn( ply, sayCmds[ sayCommand ].__cmd, argv )
local return_value = hook.Call( ULib.HOOK_COMMAND_CALLED, _, ply, sayCmds[ sayCommand ].__cmd, argv )
if return_value ~= false then
sayCmds[ sayCommand ].__fn( ply, sayCmds[ sayCommand ].__cmd, argv )
end
end
local function hookRoute( ply, command, argv )