]> gitweb.pimeys.fr Git - bots/basile.git/commitdiff
correction de la commande SOLDE sans paramètre
authorVincent Le Gallic <basile@crans.org>
Tue, 8 May 2012 21:21:26 +0000 (23:21 +0200)
committerVincent Le Gallic <basile@crans.org>
Tue, 8 May 2012 21:21:26 +0000 (23:21 +0200)
basile.py
identities.pickle

index bad7c8fe38230159137adf6d56e0802b1b20a144..c9058c017feefbef8f3fbd98e989b7ea4f6016ae 100755 (executable)
--- 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
index fa6eaeae3e03a7521680beabca031323098cf665..593affe50cb6d50059f4d29de2e2763a99a9e059 100644 (file)
@@ -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