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:
-rw-r--r--plugins/wot.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/wot.py b/plugins/wot.py
index 924d9e8..c24e78a 100644
--- a/plugins/wot.py
+++ b/plugins/wot.py
@@ -78,9 +78,9 @@ def wot(type, jid, nick, text):
claninfo = wot_api.fetch('wgn/clans/membersinfo', 'account_id=%s' % player_id)
if claninfo[player_id]:
- clan_id = str(claninfo[player_id]['clan_id'])
- cdata = wot_api.fetch('wgn/clans/info', 'clan_id=%s&fields=abbreviation' % clan_id)
- cname = cdata[clan_id]['abbreviation']
+ clan_id = str(claninfo[player_id]['clan']['clan_id'])
+ cdata = wot_api.fetch('wgn/clans/info', 'clan_id=%s&fields=tag' % clan_id)
+ cname = cdata[clan_id]['tag']
except:
pdata = None