From 2208480655f315f482c1af8977532db2251bc4c6 Mon Sep 17 00:00:00 2001 From: Vincent Le Gallic Date: Fri, 4 Sep 2015 11:44:03 +0200 Subject: [PATCH] =?utf8?q?Erreur=20de=20s=C3=A9mantique=20dans=20le=20drop?= =?utf8?q?()?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- basile.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/basile.py b/basile.py index 86e8105..81ada60 100755 --- a/basile.py +++ b/basile.py @@ -333,10 +333,11 @@ class Basile(ircbot.SingleServerIRCBot): elif cmd == u"drop": if len(message) > 1: if self.users.has(auteur): + idbde = self.users[auteur].idbde password = " ".join(message[1:]) - success, _, _ = self.new_connection_NK(serv, "#%s" % self.users[auteur].idbde, password) + success, _, _ = self.new_connection_NK(serv, "#%s" % idbde, password) if success: - self.users.drop(auteur) + self.users.drop(idbde) log(self.serveur, "priv", auteur, " ".join(message) + "[successful]") serv.privmsg(auteur, "Pseudo oublié.") else: -- 2.39.2