From fd18f468f4b21a4bee70ff37b9c56819809be919 Mon Sep 17 00:00:00 2001 From: Ben Kurtovic Date: Thu, 5 Jul 2012 02:02:34 -0400 Subject: [PATCH] Resolve missing command issue. --- earwigbot/irc/data.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/earwigbot/irc/data.py b/earwigbot/irc/data.py index b68f27d..878a56b 100644 --- a/earwigbot/irc/data.py +++ b/earwigbot/irc/data.py @@ -63,10 +63,10 @@ class Data(object): bot's name); self.is_command will be set to True, and self.trigger will store the trigger string. Otherwise, is_command will be set to False. """ - self._args = self.msg.strip().split()[1:] + self._args = self.msg.strip().split() try: - self._command = self.args[0].lower() + self._command = self.args.pop(0).lower() except IndexError: return