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

scope fixes; put uptime to conf()

This commit is contained in:
urlbot
2014-09-27 05:59:35 +02:00
parent 60285089fe
commit 2714858b1e
3 changed files with 6 additions and 2 deletions

View File

@@ -16,7 +16,6 @@ fifo_path = os.path.join(basedir, 'cmdfifo')
# rate limiting to 5 messages per 10 minutes
hist_ts = []
hist_flag = True
uptime = -time.time()
request_counter = 0
parser = None
@@ -240,6 +239,7 @@ plugins.logger = logger
plugins.ratelimit_exceeded = ratelimit_exceeded
plugins.ratelimit_touch = ratelimit_touch
plugins.random = random
plugins.time = time
plugins.register_all()