From 7324c63c60fcb6315d5236fe7f43a4be1d0eec17 Mon Sep 17 00:00:00 2001 From: deathbybandaid Date: Wed, 18 Sep 2019 14:26:47 -0400 Subject: [PATCH] nick_id --- sopel_modules/SpiceBot/Prerun.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/sopel_modules/SpiceBot/Prerun.py b/sopel_modules/SpiceBot/Prerun.py index 37ff224..4ea70f5 100644 --- a/sopel_modules/SpiceBot/Prerun.py +++ b/sopel_modules/SpiceBot/Prerun.py @@ -295,7 +295,8 @@ def trigger_runstatus_query(bot, trigger, botcom): # registered nick, but not identified else: - if str(trigger.nick).lower() not in [x.lower() for x in botusers.dict["identified"]]: + nick_id = botusers.whois_ident(trigger.nick) + if nick_id not in botusers.dict["identified"]: message = "Your nickname appears to be registered with IRC services. However, you have not identified. Identifying may take a few minutes to process with the bot." return trigger_cant_run(bot, trigger, botcom, message) @@ -360,7 +361,8 @@ def trigger_runstatus(bot, trigger, botcom): # registered nick, but not identified else: - if str(trigger.nick).lower() not in [x.lower() for x in botusers.dict["identified"]]: + nick_id = botusers.whois_ident(trigger.nick) + if nick_id not in botusers.dict["identified"]: message = "Your nickname appears to be registered with IRC services. However, you have not identified. Identifying may take a few minutes to process with the bot." return trigger_cant_run(bot, trigger, botcom, message)