summaryrefslogtreecommitdiff
path: root/mentio.py
diff options
context:
space:
mode:
authorjomo <github@jomo.tv>2014-08-07 01:11:15 +0200
committerjomo <github@jomo.tv>2014-08-07 01:11:15 +0200
commit6e65173c4a7dd50480ab501d190c5478644aa836 (patch)
tree1492326ed8b1b3346c806a25b3a79576fb96861f /mentio.py
parent43f8f95961841a18bf49c9b2ca3c9a8fbea95783 (diff)
don't be racist against players with uppercase characters in their name
Diffstat (limited to 'mentio.py')
-rw-r--r--mentio.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/mentio.py b/mentio.py
index b6ffd96..003fa63 100644
--- a/mentio.py
+++ b/mentio.py
@@ -27,7 +27,7 @@ def onChat(event):
keywords = mentions[uid(recipient)]
else:
# player
- keywords = [recipient.getName(), stripcolors(recipient.getDisplayName())]
+ keywords = [recipient.getName().lower(), stripcolors(recipient.getDisplayName()).lower()]
rec_words = words[:] # copy
for index, word in enumerate(rec_words):