]> gitweb.pimeys.fr Git - bots/basile.git/commitdiff
[Compatibilité serveur NK] Le masque contient maintenant les droits qu'on ne veut...
authorVincent Le Gallic <legallic@crans.org>
Tue, 14 Aug 2012 02:55:44 +0000 (04:55 +0200)
committerVincent Le Gallic <legallic@crans.org>
Tue, 14 Aug 2012 02:55:44 +0000 (04:55 +0200)
basile.py

index fd53a89a962246ea0b13d86b48d9245071fd07eb..610a34609e65d374d875e1a315a1ef8a97965e4b 100755 (executable)
--- 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)