From: Vincent Le Gallic Date: Tue, 8 May 2012 20:26:27 +0000 (+0200) Subject: cafouillage sur les masque special/bdd au login X-Git-Url: http://gitweb.pimeys.fr/?a=commitdiff_plain;ds=inline;h=17c35b5c420e6ed57251dae1abfe081bc8a8b44f;p=bots%2Fbasile.git cafouillage sur les masque special/bdd au login --- diff --git a/basile.py b/basile.py index 17a861c..f92fe67 100755 --- a/basile.py +++ b/basile.py @@ -178,9 +178,13 @@ def connect_NK(): def login_NK(username,password,typ="bdd"): sock=connect_NK() + if typ=="special": # ça c'est pour Basile lui-même + masque='["note"]' + elif typ=="bdd": + masque='[["all"],["all"],false]' try: # Basile a un compte special user - commande='login [%s,%s,"%s",["note"]]'%(json.dumps(username),json.dumps(password),typ) + commande='login [%s,%s,"%s",%s]'%(json.dumps(username),json.dumps(password),typ,masque) sock.write(commande) out=sock.read() except Exception as exc: