From: Thorsten Date: Wed, 3 Oct 2018 16:51:48 +0000 (+0200) Subject: accept mistypings of my name X-Git-Url: https://git.aero2k.de/?a=commitdiff_plain;h=ed9e905c56aa713327fff4c76be0bf23dd41ba14;p=urlbot-v3.git accept mistypings of my name --- diff --git a/distbot/bot/bot.py b/distbot/bot/bot.py old mode 100755 new mode 100644 index 79522ee..6f0766f --- a/distbot/bot/bot.py +++ b/distbot/bot/bot.py @@ -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