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 | 49eb99207ebaa3c5a5040dd87084304d4ab10adf (patch) | |
tree | 0695c738f5b7dd1fd3a7e3aa31c864de020ede2c | |
parent | 5e468c5d642311523cbc38cc84c9402072e48fd1 (diff) |
Reaktor/IRC: fix no args
-rwxr-xr-x | Reaktor/IRC/asybot.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/Reaktor/IRC/asybot.py b/Reaktor/IRC/asybot.py index 08cba0e3..8367b190 100755 --- a/Reaktor/IRC/asybot.py +++ b/Reaktor/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 = {} |