diff options
author | lassulus <lassulus@googlemail.com> | 2013-12-19 02:40:17 +0100 |
---|---|---|
committer | lassulus <lassulus@googlemail.com> | 2013-12-19 02:40:17 +0100 |
commit | f8829c2c84ca67c5b0e496bb98ed2b3d8efbcbe8 (patch) | |
tree | 86d7f26cfc51e20576016411e12d872c4d28b739 /IRC | |
parent | f0768b7253bc37434a8594d6f8a5acc033356085 (diff) |
Reaktor/IRC: fix no args
Diffstat (limited to 'IRC')
-rwxr-xr-x | IRC/asybot.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/IRC/asybot.py b/IRC/asybot.py index 08cba0e..8367b19 100755 --- a/IRC/asybot.py +++ b/IRC/asybot.py @@ -146,8 +146,7 @@ class asybot(asychat): #TODO: allow only commands below ./commands/ exe = join(dirname(realpath(dirname(__file__))), command['argv'][0]) myargv = [exe] + command['argv'][1:] - print(match.groupdict()) - if 'args' in match.groupdict(): + if match.groupdict().get('args',None): myargv += shlex.split(match.groupdict()['args']) env = {} |