When checking if the bot is addressed, check with case-insensitivity
This commit is contained in:
parent
8dc82d12ff
commit
ee4d16b352
|
@ -194,7 +194,7 @@ class Encyclopedia(callbacks.Plugin):
|
||||||
if t2 and t2.find('>') != -1 and t2.find('|') != -1:
|
if t2 and t2.find('>') != -1 and t2.find('|') != -1:
|
||||||
text = text[nlen+1:].strip()
|
text = text[nlen+1:].strip()
|
||||||
return text
|
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 text[nlen+1:]
|
||||||
return False
|
return False
|
||||||
else: # Private
|
else: # Private
|
||||||
|
|
Loading…
Reference in New Issue