Typo in modules/check_mode.py; 'required_mode' -> 'require_mode'

This commit is contained in:
jesopo 2018-09-30 20:53:36 +01:00
parent 416d744291
commit a879125883

View file

@ -7,5 +7,5 @@ class Module(ModuleManager.BaseModule):
require_mode = event["hook"].get_kwarg("require_mode")
if event["is_channel"] and require_mode:
if not event["target"].mode_or_above(event["user"],
required_mode):
require_mode):
return "You do not have permission to do this"