added a way for command event hooks to ask to only be fired from private messages.
This commit is contained in:
parent
d5e4c7bbe7
commit
436db4b9a8
1 changed files with 2 additions and 0 deletions
|
@ -86,6 +86,8 @@ class Module(object):
|
||||||
target = event["user"]
|
target = event["user"]
|
||||||
if not is_channel and hook.kwargs.get("channel_only"):
|
if not is_channel and hook.kwargs.get("channel_only"):
|
||||||
return
|
return
|
||||||
|
if is_channel and hooks.kwargs.get("private_only"):
|
||||||
|
return
|
||||||
|
|
||||||
log = target.log
|
log = target.log
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue