revert EvMore commands to directly checking for account attr

This commit is contained in:
InspectorCaracal 2024-10-28 12:10:14 -06:00 committed by GitHub
parent 276c77fb97
commit e9242c64a4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -79,7 +79,7 @@ class CmdMore(Command):
Implement the command
"""
more = self.caller.ndb._more
if not more and inherits_from(self.caller, evennia.DefaultObject):
if not more and hasattr(self.caller, 'account') and self.caller.has_account:
more = self.caller.account.ndb._more
if not more:
self.caller.msg("Error in loading the pager. Contact an admin.")
@ -113,7 +113,7 @@ class CmdMoreExit(Command):
Exit pager and re-fire the failed command.
"""
more = self.caller.ndb._more
if not more and inherits_from(self.caller, evennia.DefaultObject):
if not more and hasattr(self.caller, 'account') and self.caller.has_account:
more = self.caller.account.ndb._more
if not more:
self.caller.msg("Error in exiting the pager. Contact an admin.")