copypaste name collision for channel_op.py's op function

This commit is contained in:
jesopo 2019-08-30 12:26:52 +01:00
parent 8a2e364ffd
commit 0d9bd57332

View file

@ -136,7 +136,7 @@ class Module(ModuleManager.BaseModule):
@utils.kwarg("require_mode", "o")
@utils.kwarg("require_access", "voice")
@utils.kwarg("usage", "[nickname]")
def op(self, event):
def voice(self, event):
add = event.name == "received.command.voice"
target = event["args_split"][0] if event["args"] else event[
"user"].nickname