From 436db4b9a81f1ef678b100cf82f0a16a0a3fd45d Mon Sep 17 00:00:00 2001 From: jesopo Date: Mon, 4 Apr 2016 18:41:07 +0100 Subject: added a way for command event hooks to ask to only be fired from private messages. --- modules/commands.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'modules') 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 -- cgit v1.3.1-10-gc9f91