From 891a661d83b83b7ca2aad8ba557bc9ef7bcb6220 Mon Sep 17 00:00:00 2001 From: phxntxm Date: Wed, 28 Sep 2016 20:57:19 -0500 Subject: [PATCH] Ensured only battletag was updated --- cogs/overwatch.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cogs/overwatch.py b/cogs/overwatch.py index 9d5bd58..fac59a3 100644 --- a/cogs/overwatch.py +++ b/cogs/overwatch.py @@ -117,9 +117,10 @@ class Overwatch: # Now just save the battletag entry = {'member_id': ctx.message.author.id, 'battletag': bt} + update = {'battletag': bt} # Try adding this first, if that fails, update the saved entry if not await config.add_content('overwatch', entry, r_filter): - await config.update_content('overwatch', entry, r_filter) + await config.update_content('overwatch', update, r_filter) await self.bot.say("I have just saved your battletag {}".format(ctx.message.author.mention)) @ow.command(pass_context=True, name="delete", aliases=['remove'], no_pm=True)