Fix typo (GH#7421)

This commit is contained in:
numzero 2018-06-10 00:52:30 +03:00 committed by Nils Dagsson Moskopp
parent 7ae3ad01b8
commit 5a20e6cdcf
Signed by: erle
GPG Key ID: A3BC671C35191080
1 changed files with 1 additions and 1 deletions

View File

@ -445,7 +445,7 @@ end
function core.run_priv_callbacks(name, priv, caller, method) function core.run_priv_callbacks(name, priv, caller, method)
local def = core.registered_privileges[priv] local def = core.registered_privileges[priv]
if not def or not def["on_" .. method] or if not def or not def["on_" .. method] or
not def[priv]["on_" .. method](name, caller) then not def["on_" .. method](name, caller) then
for _, func in ipairs(core["registered_on_priv_" .. method]) do for _, func in ipairs(core["registered_on_priv_" .. method]) do
if not func(name, caller, priv) then if not func(name, caller, priv) then
break break