From 2762462162a28a86fc58479078a2c7621fe3b453 Mon Sep 17 00:00:00 2001 From: deathbybandaid Date: Wed, 2 Oct 2019 11:49:39 -0400 Subject: [PATCH] whois forget on nick change --- sopel_modules/SpiceBot/Users.py | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/sopel_modules/SpiceBot/Users.py b/sopel_modules/SpiceBot/Users.py index 4ccf102..5918747 100644 --- a/sopel_modules/SpiceBot/Users.py +++ b/sopel_modules/SpiceBot/Users.py @@ -267,6 +267,7 @@ class BotUsers(): def nick(self, bot, trigger): oldnick = trigger.nick old_nick_id = self.whois_ident(oldnick) + self.whois_identify_forget(old_nick_id) newnick = Identifier(trigger) if oldnick == bot.nick or newnick == bot.nick: return @@ -283,11 +284,11 @@ class BotUsers(): # mark user as online self.mark_user_online(old_nick_id) # alias the nick - try: - botdb.alias_nick(oldnick, newnick) - except Exception as e: - old_nick_id = e - return + # try: + # botdb.alias_nick(oldnick, newnick) + # except Exception as e: + # old_nick_id = e + # return def mode(self, bot, trigger): return