From 1a211dd7f0d1ec9ce4bbdd19e8e54e710ff2ee22 Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Tue, 4 Oct 2016 16:50:58 +0200 Subject: [PATCH] Bugfics --- bot.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/bot.py b/bot.py index 5f60b488..3615abfd 100644 --- a/bot.py +++ b/bot.py @@ -515,8 +515,10 @@ def match(): if len(cmd) > 2: del cmd[0] for name in cmd: - userdata = db.findbyname(name) - tobematched += userdata['steam'] + userdata = db.findbyname(name.lower()) + if userdata is not None and 'steam' in userdata: + if userdata['steam'] not in tobematched: + tobematched += userdata['steam'] if len(tobematched) > 1: m = list(steammatch.compare(tobematched)) if len(m) > 0: