Browse Source

Fixing bug with private messages.

tags/v0.1^2
Ben Kurtovic 12 years ago
parent
commit
e9a6b5e4ac
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      earwigbot/irc/data.py

+ 1
- 1
earwigbot/irc/data.py View File

@@ -46,7 +46,7 @@ class Data(object):
self._chan = self.line[2] self._chan = self.line[2]


if msgtype == "PRIVMSG": 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 # This is a privmsg to us, so set 'chan' as the nick of the
# sender instead of the 'channel', which is ourselves: # sender instead of the 'channel', which is ourselves:
self._chan = self._nick self._chan = self._nick


Loading…
Cancel
Save