fix stupid PM bug
the bot wouldn't respond in PMs to people with uppercase letters in their name
This commit is contained in:
parent
3f326dcc22
commit
c5f1fccd29
|
@ -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):
|
||||
|
|
Loading…
Reference in New Issue