When checking if the bot is addressed, check with case-insensitivity

This commit is contained in:
Terence Simpson 2008-05-16 04:57:03 +01:00
parent 8dc82d12ff
commit ee4d16b352

View File

@ -194,7 +194,7 @@ class Encyclopedia(callbacks.Plugin):
if t2 and t2.find('>') != -1 and t2.find('|') != -1:
text = text[nlen+1:].strip()
return text
if text.lower().startswith(irc.nick) and not text[nlen].isalnum():
if text.lower().startswith(irc.nick.lower()) and not text[nlen].isalnum():
return text[nlen+1:]
return False
else: # Private