aboutsummaryrefslogtreecommitdiff
path: root/modules/commands.py
diff options
context:
space:
mode:
authorGravatar jesopo2016-04-03 13:20:05 +0100
committerGravatar jesopo2016-04-03 13:20:05 +0100
commit504e93a78d59d51243acbcab6831309805d01fd1 (patch)
treef5687e4611875e3b4b5e5370492bf7df86e77703 /modules/commands.py
parentadded code to prevent newlines being where they shouldn't be in outgoing lines. (diff)
tinkered with some modules and fixed a few bugs, also added the skeleton for the auto_mode.py module.
Diffstat (limited to 'modules/commands.py')
-rw-r--r--modules/commands.py4
1 files changed, 3 insertions, 1 deletions
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",