From 7edcdb0f3dd5e1cca04ad52584681f267da25383 Mon Sep 17 00:00:00 2001 From: Chiizujin Date: Fri, 16 Aug 2024 22:02:15 +1000 Subject: [PATCH] Handle empty query in improved help search --- evennia/commands/default/help.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/evennia/commands/default/help.py b/evennia/commands/default/help.py index cb679bc359..4e9b06bdde 100644 --- a/evennia/commands/default/help.py +++ b/evennia/commands/default/help.py @@ -478,7 +478,7 @@ class CmdHelp(COMMAND_DEFAULT_CLASS): """ def strip_prefix(query): - if query[0] in settings.CMD_IGNORE_PREFIXES: + if query and query[0] in settings.CMD_IGNORE_PREFIXES: return query[1:] return query