fix stupid PM bug

the bot wouldn't respond in PMs to people with uppercase letters in their name
This commit is contained in:
Patrick Hurst 2010-08-22 21:33:24 -04:00
parent 3f326dcc22
commit c5f1fccd29
1 changed files with 2 additions and 2 deletions

View File

@ -9,8 +9,8 @@ class Input(dict):
def __init__(self, conn, raw, prefix, command, params,
nick, user, host, paraml, msg):
chan = paraml[0].lower()
if chan == conn.nick: # is a PM
chan = paraml[0]
if chan.lower() == conn.nick.lower(): # is a PM
chan = nick
def say(msg):