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)