handle account-callers in CmdMoreExit
This commit is contained in:
parent
fd05fe4c02
commit
276c77fb97
1 changed files with 5 additions and 1 deletions
|
|
@ -111,9 +111,13 @@ class CmdMoreExit(Command):
|
||||||
def func(self):
|
def func(self):
|
||||||
"""
|
"""
|
||||||
Exit pager and re-fire the failed command.
|
Exit pager and re-fire the failed command.
|
||||||
|
|
||||||
"""
|
"""
|
||||||
more = self.caller.ndb._more
|
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()
|
more.page_quit()
|
||||||
|
|
||||||
# re-fire the command (in new cmdset)
|
# re-fire the command (in new cmdset)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue