From ed9e905c56aa713327fff4c76be0bf23dd41ba14 Mon Sep 17 00:00:00 2001 From: Thorsten Date: Wed, 3 Oct 2018 18:51:48 +0200 Subject: [PATCH] accept mistypings of my name --- distbot/bot/bot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) mode change 100755 => 100644 distbot/bot/bot.py 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 -- 2.39.2