From 68f111c7d6bc0f312ea2e775a0bfe4b0c315464d Mon Sep 17 00:00:00 2001 From: Ben Kurtovic Date: Fri, 6 Jul 2012 13:32:33 -0400 Subject: [PATCH] 'nickname: command' works if delimited by a period. --- earwigbot/irc/data.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/earwigbot/irc/data.py b/earwigbot/irc/data.py index c802cf3..de7a1ac 100644 --- a/earwigbot/irc/data.py +++ b/earwigbot/irc/data.py @@ -83,6 +83,15 @@ class Data(object): self._command = self.args.pop(0).lower() except IndexError: self._command = "" + else: + try: + if self.msg[-1] == "." and self.msg[-2] != ".": + if self.args: + self.args[-1] = self.args[-1][:-1] + else: + self._command = self.command[:-1] + except IndexError: + pass def _parse_kwargs(self): """Parse keyword arguments embedded in self.args.