aboutsummaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
Diffstat (limited to 'modules')
-rw-r--r--modules/commands.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/modules/commands.py b/modules/commands.py
index cfdfc5a6..db80c289 100644
--- a/modules/commands.py
+++ b/modules/commands.py
@@ -86,6 +86,8 @@ class Module(object):
target = event["user"]
if not is_channel and hook.kwargs.get("channel_only"):
return
+ if is_channel and hooks.kwargs.get("private_only"):
+ return
log = target.log