From 49eb99207ebaa3c5a5040dd87084304d4ab10adf Mon Sep 17 00:00:00 2001 From: lassulus Date: Thu, 19 Dec 2013 02:40:17 +0100 Subject: Reaktor/IRC: fix no args --- Reaktor/IRC/asybot.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'Reaktor/IRC') 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 = {} -- cgit v1.2.3