Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/isida/3.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordiSabler <dissy@ya.ru>2014-01-08 01:10:00 +0400
committerdiSabler <dissy@ya.ru>2014-01-08 01:10:00 +0400
commit4f8beae698e2be97f3dd37c60b188f1f1152e8d1 (patch)
tree83e5e2abf01d20c88d81ed51630d727d0fb81687
parent6b7a7899f7515bd247dec15a4b4423a4ed47207d (diff)
fix: random bomb
-rw-r--r--plugins/bomb.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/bomb.py b/plugins/bomb.py
index c78ee74..df3e9ec 100644
--- a/plugins/bomb.py
+++ b/plugins/bomb.py
@@ -150,7 +150,7 @@ def bomb_random():
bt -= 1
while not game_over:
ntime = time.time()
- cb = [t[0] for t in cur_execute_fetchall("select split_part(room,'/',1) from conference;")]
+ cb = [t[0] for t in cur_execute_fetchall("select split_part(room,'/',1) from conference;") if t]
for tmp in cb:
try: bla = get_config(tmp,'bomb_random_active') and (ntime - bomb_last_activity[tmp]) < get_config_int(tmp,'bomb_random_active_timer')
except: bla = True