From c8131eab80b699f14aa763e7c3b614adca58ee28 Mon Sep 17 00:00:00 2001 From: CloudKeeper1 Date: Wed, 26 Jul 2017 23:53:53 +1000 Subject: [PATCH] Add EvMenu support for ending on start node. Currently, if the start node has options of None then any input causes a "Choose an option or try 'help'." message to display and then ending the menu. This supports ending the menu without eating input. --- evennia/utils/evmenu.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/evennia/utils/evmenu.py b/evennia/utils/evmenu.py index f0cbff7540..9327b10a8e 100644 --- a/evennia/utils/evmenu.py +++ b/evennia/utils/evmenu.py @@ -855,6 +855,8 @@ class EvMenu(object): self.helptext = _HELP_NO_OPTIONS if self.auto_quit else _HELP_NO_OPTIONS_NO_QUIT self.display_nodetext() + if not options: + self.close_menu() def close_menu(self): """