From d04104efdaaf4b7c6fac50851981cb0d42a29247 Mon Sep 17 00:00:00 2001 From: deathbybandaid Date: Tue, 14 May 2019 21:48:23 -0400 Subject: [PATCH] remove ? --- sopel_modules/SpiceBot_CommandsQuery/NickQueryCommand.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sopel_modules/SpiceBot_CommandsQuery/NickQueryCommand.py b/sopel_modules/SpiceBot_CommandsQuery/NickQueryCommand.py index 196a9e1..d567352 100644 --- a/sopel_modules/SpiceBot_CommandsQuery/NickQueryCommand.py +++ b/sopel_modules/SpiceBot_CommandsQuery/NickQueryCommand.py @@ -22,6 +22,7 @@ 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): @@ -53,7 +54,7 @@ def query_detection_nick(bot, trigger): if "aliasfor" in commands_list[triggercommand].keys(): realcom = commands_list[triggercommand]["aliasfor"] validcomlist = commands_list[realcom]["validcoms"] - bot.notice("The following " + bot.nick + "commands match " + str(triggercommand) + ": " + spicemanip.main(validcomlist, 'andlist') + ".", trigger.nick) + bot.notice("The following " + bot.nick + " commands match " + str(triggercommand) + ": " + spicemanip.main(validcomlist, 'andlist') + ".", trigger.nick) return if triggercommand.endswith("?"):