From b350b4d73df63f4f2a17b6a997d2176ecbe903a9 Mon Sep 17 00:00:00 2001 From: deathbybandaid Date: Tue, 14 May 2019 22:17:40 -0400 Subject: [PATCH] logic --- sopel_modules/SpiceBot_CommandsQuery/NickQueryCommand.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sopel_modules/SpiceBot_CommandsQuery/NickQueryCommand.py b/sopel_modules/SpiceBot_CommandsQuery/NickQueryCommand.py index 7699955..67782f3 100644 --- a/sopel_modules/SpiceBot_CommandsQuery/NickQueryCommand.py +++ b/sopel_modules/SpiceBot_CommandsQuery/NickQueryCommand.py @@ -19,7 +19,6 @@ def query_detection_nick(bot, trigger): pass triggerargs, triggercommand = sopel_triggerargs(bot, trigger, 'nickname_command') - triggercommand = triggercommand[1:] # command issued, check if valid if not triggercommand or not len(triggercommand): @@ -27,6 +26,7 @@ def query_detection_nick(bot, trigger): if not triggercommand[0] == "?": return + triggercommand = triggercommand[1:] if not letters_in_string(triggercommand): return