]> git.aero2k.de Git - urlbot-v3.git/commitdiff
accept mistypings of my name
authorThorsten <mail@aero2k.de>
Wed, 3 Oct 2018 16:51:48 +0000 (18:51 +0200)
committerThorsten <mail@aero2k.de>
Wed, 3 Oct 2018 16:51:48 +0000 (18:51 +0200)
distbot/bot/bot.py [changed mode: 0755->0644]

old mode 100755 (executable)
new mode 100644 (file)
index 79522ee..6f0766f
@@ -191,7 +191,7 @@ class Bot(sleekxmpp.ClientXMPP):
 
             # cut the nick from the message
             offset = 0
-            if self.nick in key[0]:
+            if self.nick.lower() in key[0].lower():
                 key.pop(0)
                 key.insert(0, "nick")
                 offset = len(self.nick) + 1