From 68b89098be8ad886aab0140d9aa81daf69cd8545 Mon Sep 17 00:00:00 2001 From: pauget Date: Sun, 17 Oct 2004 02:06:12 +0200 Subject: [PATCH] Commentaire pour blacklistage non obligatoire darcs-hash:20041017000612-41617-e2bf93e1106195c70fba42f3dfd136862be1d683.gz --- gestion/gest_crans.py | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/gestion/gest_crans.py b/gestion/gest_crans.py index 268fe05a..cebe0384 100755 --- a/gestion/gest_crans.py +++ b/gestion/gest_crans.py @@ -657,9 +657,14 @@ def set_blackliste(clas) : # Commentaire c = r[2].strip() login = script_utilisateur - if c.split(' :')[0] != login : - t[3] = login + ' : ' + c - + if c : + if c.split(' :')[0] != login : + t[3] = login + ' : ' + c + else : + t[3] = c + else : + t[3] = login + try : if index == -1 : clas.blacklist(t)