From 504e93a78d59d51243acbcab6831309805d01fd1 Mon Sep 17 00:00:00 2001 From: jesopo Date: Sun, 3 Apr 2016 13:20:05 +0100 Subject: tinkered with some modules and fixed a few bugs, also added the skeleton for the auto_mode.py module. --- modules/commands.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'modules/commands.py') diff --git a/modules/commands.py b/modules/commands.py index 3ea4a4e0..cfdfc5a6 100644 --- a/modules/commands.py +++ b/modules/commands.py @@ -88,7 +88,6 @@ class Module(object): return log = target.log - log.skip_next() module_name = hook.function.__self__._name stdout, stderr = StdOut(module_name, target), StdErr(module_name, @@ -99,6 +98,7 @@ class Module(object): for returned in returns: if returned: stderr.write(returned).send() + log.skip_next() return args_split = list(filter(None, event["message_split"][args_index:])) min_args = hook.kwargs.get("min_args") @@ -117,6 +117,8 @@ class Module(object): target.last_stdout = stdout stderr.send() target.last_stderr = stderr + log.skip_next() + def channel_message(self, event): command_prefix = event["channel"].get_setting("command_prefix", -- cgit v1.3.1-10-gc9f91