From: Vincent Le Gallic Date: Tue, 14 Aug 2012 02:55:44 +0000 (+0200) Subject: [Compatibilité serveur NK] Le masque contient maintenant les droits qu'on ne veut... X-Git-Url: http://gitweb.pimeys.fr/?p=bots%2Fbasile.git;a=commitdiff_plain;h=9fd92669fd83e2ac4c57874aad0996ea2d0964f9 [Compatibilité serveur NK] Le masque contient maintenant les droits qu'on ne veut *pas* --- diff --git a/basile.py b/basile.py index fd53a89..610a346 100755 --- a/basile.py +++ b/basile.py @@ -92,9 +92,9 @@ 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"]' + masque='[]' elif typ=="bdd": - masque='[["all"],["all"],false]' + masque='[[], [], true]' try: # Basile a un compte special user commande='login [%s,%s,"%s",%s]'%(json.dumps(username),json.dumps(password),typ,masque)