From c5f1fccd297ab3a26abcc093cbf2d8776a9674dc Mon Sep 17 00:00:00 2001 From: Patrick Hurst Date: Sun, 22 Aug 2010 21:33:24 -0400 Subject: [PATCH] fix stupid PM bug the bot wouldn't respond in PMs to people with uppercase letters in their name --- core/main.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/main.py b/core/main.py index c05c703..da35066 100644 --- a/core/main.py +++ b/core/main.py @@ -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):