From dd72797c35b6bde903c87b329bdb145f6863dc4a Mon Sep 17 00:00:00 2001 From: Greg Burri Date: Sat, 10 May 2008 22:34:28 +0000 Subject: [PATCH] MOD correction dans l'affichage du temps de bannage --- modules/erl/euphorik_protocole.erl | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/modules/erl/euphorik_protocole.erl b/modules/erl/euphorik_protocole.erl index dc29bf5..c1bc376 100755 --- a/modules/erl/euphorik_protocole.erl +++ b/modules/erl/euphorik_protocole.erl @@ -230,7 +230,11 @@ format_minutes(Min) -> Minutes = Min rem (60), if Jours =/= 0 -> integer_to_list(Jours) ++ "Jour" ++ if Jours > 1 -> "s"; true -> "" end ++ " "; true -> "" end ++ if Heures =/= 0 -> integer_to_list(Heures) ++ "h"; true -> "" end ++ - lists:flatten(io_lib:format(if Jours =:= 0, Heures =:= 0 -> "~w"; true -> "~2.2.0w" end, [Minutes])) ++ "min". + if Minutes == 0 -> + ""; + true -> + lists:flatten(io_lib:format(if Jours =:= 0, Heures =:= 0 -> "~w"; true -> "~2.2.0w" end, [Minutes])) ++ "min" + end. % bannissement d'un utilisateur (son ip est bannie) -- 2.43.0