mirror of
https://github.com/evennia/evennia.git
synced 2026-03-17 05:16:31 +01:00
Made EvMenu correctly handle being called from a ServerSession.
This commit is contained in:
parent
2427db7f9f
commit
f10f4ddc98
1 changed files with 2 additions and 2 deletions
|
|
@ -194,7 +194,7 @@ class CmdEvMenuNode(Command):
|
|||
Implement all menu commands.
|
||||
"""
|
||||
caller = self.caller
|
||||
menu = caller.ndb._menutree
|
||||
menu = caller.ndb._menutree or self.session.ndb._menutree
|
||||
|
||||
if not menu:
|
||||
err = "Menu object not found as %s.ndb._menutree!" % (caller)
|
||||
|
|
@ -319,7 +319,7 @@ class EvMenu(object):
|
|||
Initialize the menu tree and start the caller onto the first node.
|
||||
|
||||
Args:
|
||||
caller (str): The user of the menu.
|
||||
caller (Object, Player or Session): The user of the menu.
|
||||
menudata (str, module or dict): The full or relative path to the module
|
||||
holding the menu tree data. All global functions in this module
|
||||
whose name doesn't start with '_ ' will be parsed as menu nodes.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue