From 7c2ebca3fb83ea190743b61946dff0678c975f48 Mon Sep 17 00:00:00 2001 From: tv Date: Mon, 5 Sep 2011 20:53:17 +0200 Subject: //Synapse: allow commands w/o arguments --- Synapse/bot2.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'Synapse/bot2.py') diff --git a/Synapse/bot2.py b/Synapse/bot2.py index 63db57cb..66621ed1 100755 --- a/Synapse/bot2.py +++ b/Synapse/bot2.py @@ -44,10 +44,8 @@ class IRCBot(SimpleIRCClient): target, arguments = arguments arguments = re.split('\s+', arguments, 1) - if len(arguments) != 2: - return - command, arguments = arguments + command, arguments = arguments if len(arguments) == 2 else [arguments[0],[]] self.connection.privmsg(self.target, '- target: ' + target) self.connection.privmsg(self.target, '- command: ' + command) -- cgit v1.2.3