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

github.com/isida/4.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVitaliyS <hetleven@yandex.ua>2015-04-20 15:00:26 +0300
committerVitaliyS <hetleven@yandex.ua>2015-04-20 15:00:26 +0300
commitf6f00ae3857c4244c109dd15ed00260dad95815d (patch)
tree9c81ee19d6ccb1b4539eb281870b8dccd84324b6
parent96b6dbe60bc217919cf0e8171a0793103a46c58e (diff)
fix: wot.py - new tanks
-rw-r--r--plugins/wot.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/wot.py b/plugins/wot.py
index db3147b..6ce3813 100644
--- a/plugins/wot.py
+++ b/plugins/wot.py
@@ -110,7 +110,7 @@ def wot(type, jid, nick, text):
tank_name = tanks_data[str(t['tank_id'])]['name_i18n']
tank_wins = round(100.0*tank_win/tank_battle, 2)
- if extv:
+ if extv and extv.has_key(t['tank_id']):
#wn8
expDmg = tank_battle * extv[t['tank_id']]['expDamage']
expSpot = tank_battle * extv[t['tank_id']]['expSpot']