From e88b88f053c9b007ef126c3ddf5c00f7c6baeb20 Mon Sep 17 00:00:00 2001 From: Vincent Le Gallic Date: Tue, 8 May 2012 23:21:26 +0200 Subject: [PATCH] =?utf8?q?correction=20de=20la=20commande=20SOLDE=20sans?= =?utf8?q?=20param=C3=A8tre?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- basile.py | 3 ++- identities.pickle | 12 ++++++++---- 2 files changed, 10 insertions(+), 5 deletions(-) diff --git a/basile.py b/basile.py index bad7c8f..c9058c0 100755 --- a/basile.py +++ b/basile.py @@ -600,11 +600,12 @@ class Basile(ircbot.SingleServerIRCBot): if len(message)==1: if self.identities.has_key(auteur): try: - self.nk.write('search ["x",["pseudo"],%s]'%(json.dumps(auteur))) + self.nk.write('search ["x",["pseudo"],%s]'%(json.dumps(self.identities[auteur]))) ret=json.loads(self.nk.read()) solde=ret["msg"][0]["solde"] pseudo=ret["msg"][0]["pseudo"] except Exception as exc: + print exc serv.privmsg(auteur,"failed") log(self.serveur,"priv",auteur," ".join(message)+"[failed]") return diff --git a/identities.pickle b/identities.pickle index fa6eaea..593affe 100644 --- a/identities.pickle +++ b/identities.pickle @@ -1,10 +1,14 @@ (dp0 -S'[20-100]' +S'quelu' p1 -S'20-100' +S'quelu' p2 -sS'PEB' +sS'[20-100]' p3 -S'peb' +S'20-100' p4 +sS'PEB' +p5 +S'peb' +p6 s. \ No newline at end of file -- 2.39.2