mirror of
https://github.com/evennia/evennia.git
synced 2026-03-16 21:06:30 +01:00
revert EvMore commands to directly checking for account attr
This commit is contained in:
parent
276c77fb97
commit
e9242c64a4
1 changed files with 2 additions and 2 deletions
|
|
@ -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.")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue