From b5fa4695988f8462c76eb5633dccaac7151f58a2 Mon Sep 17 00:00:00 2001 From: deathbybandaid Date: Fri, 28 Jun 2019 16:20:58 -0400 Subject: [PATCH] test --- sopel_modules/SpiceBot/Commands.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sopel_modules/SpiceBot/Commands.py b/sopel_modules/SpiceBot/Commands.py index ebf7964..58bae25 100644 --- a/sopel_modules/SpiceBot/Commands.py +++ b/sopel_modules/SpiceBot/Commands.py @@ -164,14 +164,14 @@ class BotCommands(): self.dict['disabled'][disabletype]["nick"][nick_id] = botdb.get_nick_value(target, 'commands_' + disabletype + 'disabled') or {} if command in list(self.dict['disabled'][disabletype]["nick"].keys()): del self.dict['disabled'][disabletype]["nick"][nick_id][command] - botdb.set_nick_value(target, 'commands_' + disabletype + 'disabled', self.dict['disabled'][disabletype]["nick"][target]) + botdb.set_nick_value(target, 'commands_' + disabletype + 'disabled', self.dict['disabled'][disabletype]["nick"][nick_id]) elif target_type == "channel": target = str(target).lower() if target not in list(self.dict['disabled'][disabletype]["channel"].keys()): self.dict['disabled'][disabletype]["nick"][target] = botdb.get_channel_value(target, 'commands_' + disabletype + 'disabled') or {} if command in list(self.dict['disabled'][disabletype]["channel"][target]): del self.dict['disabled'][disabletype]["channel"][target][command] - botdb.set_channel_value(target, 'commands_' + disabletype + 'disabled', self.dict['disabled'][disabletype]["channel"][nick_id]) + botdb.set_channel_value(target, 'commands_' + disabletype + 'disabled', self.dict['disabled'][disabletype]["channel"][target]) else: raise Exception(str(target.lower()) + " appears to not be a valid user/channel")