handle account-callers in CmdMoreExit

This commit is contained in:
InspectorCaracal 2024-10-11 16:28:08 -06:00 committed by Cal
parent fd05fe4c02
commit 276c77fb97

View file

@ -111,9 +111,13 @@ class CmdMoreExit(Command):
def func(self):
"""
Exit pager and re-fire the failed command.
"""
more = self.caller.ndb._more
if not more and inherits_from(self.caller, evennia.DefaultObject):
more = self.caller.account.ndb._more
if not more:
self.caller.msg("Error in exiting the pager. Contact an admin.")
return
more.page_quit()
# re-fire the command (in new cmdset)