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)