From 6443be13f4fb79d0e5b10656027b7da301ed3dd3 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Lo=C3=AFc=20Wikle=20DUBARD?= <loic97429@gmail.com>
Date: Wed, 21 Aug 2019 14:07:38 +0200
Subject: [PATCH] fix rename searching only for the first person of the group

---
 bot.py | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/bot.py b/bot.py
index cc81ac4..4da4b90 100755
--- a/bot.py
+++ b/bot.py
@@ -104,8 +104,7 @@ class Bot(Client):
                 if user.name == texte[0]:
                     self.changeNickname(nickname=texte[1], user_id=user.uid, thread_id=thread_id, thread_type=thread_type)
                     return None
-                else:
-                    return random.choice(['T\'es sur de ton coup là ?', 'chais pas qui c\'est...'])
+            return random.choice(['T\'es sur de ton coup là ?', 'chais pas qui c\'est...'])
 
         # TODO: test remove
         # kick qqn d'un groupe
-- 
GitLab