oth.unhook
Unhooks a function previously hooked with oth.hook.
function oth.unhook(targettargetfunctionThe function to unhook.: function): ()Usage
Hook then restore print
local old
old = oth.hook(print, function(...)
return warn(...)
end)
print("This will be a warning.")
oth.unhook(print)
print("This will be a print.")