1
0
mirror of http://aero2k.de/t/repos/urlbot-native.git synced 2017-09-06 15:25:38 +02:00

when rate limited, report for how long

This commit is contained in:
urlbot
2014-08-02 17:33:28 +02:00
parent c2ebe0d3eb
commit 8377bc3b3a

View File

@@ -87,7 +87,7 @@ def ratelimit_exceeded():
if (now - first) < hist_max_time:
if hist_flag:
hist_flag = False
chat_write('(rate limited to %d messages in %d seconds)' %(hist_max_count, hist_max_time))
chat_write('(rate limited to %d messages in %d seconds, try again at %s)' %(hist_max_count, hist_max_time, time.strftime('%T %Z', time.localtime(hist_ts[0] + hist_max_time))))
logger('warn', 'rate limiting exceeded: ' + pickle.dumps(hist_ts))
return True