From e9a6b5e4acb2abb4012bd0b4cd66cc018622f744 Mon Sep 17 00:00:00 2001 From: Ben Kurtovic Date: Thu, 5 Jul 2012 16:14:02 -0400 Subject: [PATCH] Fixing bug with private messages. --- earwigbot/irc/data.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/earwigbot/irc/data.py b/earwigbot/irc/data.py index b60fad9..c802cf3 100644 --- a/earwigbot/irc/data.py +++ b/earwigbot/irc/data.py @@ -46,7 +46,7 @@ class Data(object): self._chan = self.line[2] if msgtype == "PRIVMSG": - if self.chan == self.my_nick: + if self.chan.lower() == self.my_nick: # This is a privmsg to us, so set 'chan' as the nick of the # sender instead of the 'channel', which is ourselves: self._chan = self._nick