From 45110d8cdc336d044cebb4d3d56409cbb1319791 Mon Sep 17 00:00:00 2001 From: Ben Kurtovic Date: Sun, 13 Sep 2015 00:47:15 -0500 Subject: [PATCH] Fix lowercasing of nicks with nick-replies. --- earwigbot/irc/data.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/earwigbot/irc/data.py b/earwigbot/irc/data.py index 1947dba..928ff3b 100644 --- a/earwigbot/irc/data.py +++ b/earwigbot/irc/data.py @@ -76,7 +76,8 @@ class Data(object): self._args = self.msg.strip().split() try: - self._command = self.args.pop(0).lower() + command_uc = self.args.pop(0) + self._command = command_uc.lower() except IndexError: return @@ -106,7 +107,8 @@ class Data(object): # e.g. "!command>user arg1 arg2" if ">" in self.command: - self._command, self._reply_nick = self.command.split(">", 1) + command_uc, self._reply_nick = command_uc.split(">", 1) + self._command = command_uc # e.g. "!command >user arg1 arg2" if self.args and self.args[0].startswith(">"):