From 543a1d6ac16412734284500346b9933d8a7798d9 Mon Sep 17 00:00:00 2001 From: Vincent Le Gallic Date: Tue, 4 Sep 2012 10:18:55 +0200 Subject: [PATCH] Inversion du masque --- client.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/client.py b/client.py index 50da240..672ef45 100755 --- a/client.py +++ b/client.py @@ -61,14 +61,14 @@ def hello(socket,version): return lit(a) def login(socket,user,mdp="",typ="bdd"): - if user in ["20-100","moibdd"]: - a.write('login ["20-100","plop","bdd",[["all"],["all"],true]]') + if user in ["20-100","moibdd","#1"]: + a.write('login ["#1","plop","bdd",[[],[],false]]') elif user in ["vincent","moi"]: - a.write('login ["vincent","plop","special",["all"]]') + a.write('login ["vincent","plop","special",[]]') elif user in ["toto"]: - a.write('login ["toto","plop","bdd",[["all"],["all"],true]]') + a.write('login ["toto","plop","bdd",[[],[],false]]') else: - a.write('login ["%s","%s","%s",[["all"],["all"],true]]'%(user,mdp,typ)) + a.write('login ["%s","%s","%s",[[],[],false]]'%(user,mdp,typ)) return lit(a) def search(socket,term): -- 2.39.2