]> gitweb.pimeys.fr Git - bots/basile.git/blobdiff - nk.py
solde en centimes
[bots/basile.git] / nk.py
diff --git a/nk.py b/nk.py
index 6de4691497ac52b34fa01a47940d567b82e74fa9..f7f4bb30d378766aa541bef42ceee82e5f286ab3 100644 (file)
--- a/nk.py
+++ b/nk.py
@@ -126,7 +126,7 @@ def consomme(sock, idbde, conso, serv, canal):
                 else:
                     success, solde, pseudo = get_solde(sock, idbde, serv, canal)
                     if success:
-                        serv.privmsg(canal, (u"%s consomme 1 %s (nouveau solde : %s)" % (pseudo, bouton["label"], solde)).encode("utf-8"))
+                        serv.privmsg(canal, (u"%s consomme 1 %s (nouveau solde : %.2f)" % (pseudo, bouton["label"], solde/100.0)).encode("utf-8"))
                     else:
                         serv.privmsg(canal, (u"%s consommé mais impossible de récupérer le solde après transaction." % (bouton["label"])).encode("utf-8"))
                     return True # on a réussi à consommer la conso