From 1925f1e7041d23a4f487609c9c97af96d95227a8 Mon Sep 17 00:00:00 2001 From: moneromooo Date: Tue, 20 Jan 2015 14:52:20 +0000 Subject: [PATCH] RainActive: fix format string error --- tipbot/modules/tipping.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tipbot/modules/tipping.py b/tipbot/modules/tipping.py index ad93699..22e4dcc 100644 --- a/tipbot/modules/tipping.py +++ b/tipbot/modules/tipping.py @@ -284,8 +284,8 @@ def RainActive(link,cmd): return pipe.execute() - log_info("%s rained %s - %s (total %s, acc %s) on the %d nicks active in the last %f hours" % (identity, AmountToString(minu), AmountToString(maxu), AmountToString(units), AmountToString(rained_units), nnicks, TimeToString(seconds))) - link.send("%s rained %s - %s on the %d nicks active in the last %f hours" % (identity, AmountToString(minu), AmountToString(maxu), nnicks, TimeToString(seconds))) + log_info("%s rained %s - %s (total %s, acc %s) on the %d nicks active in the last %s hours" % (identity, AmountToString(minu), AmountToString(maxu), AmountToString(units), AmountToString(rained_units), nnicks, TimeToString(seconds))) + link.send("%s rained %s - %s on the %d nicks active in the last %s hours" % (identity, AmountToString(minu), AmountToString(maxu), nnicks, TimeToString(seconds))) except Exception,e: log_error('Rain: exception: %s' % str(e))