Adjusting checks to use utils.inherits_from()
This commit is contained in:
parent
30bfc36beb
commit
26643a71a7
8 changed files with 26 additions and 15 deletions
|
|
@ -41,6 +41,7 @@ from django.core.paginator import Paginator
|
|||
from django.db.models.query import QuerySet
|
||||
from django.utils.translation import gettext as _
|
||||
|
||||
import evennia
|
||||
from evennia.commands import cmdhandler
|
||||
from evennia.commands.cmdset import CmdSet
|
||||
from evennia.commands.command import Command
|
||||
|
|
@ -78,7 +79,7 @@ class CmdMore(Command):
|
|||
Implement the command
|
||||
"""
|
||||
more = self.caller.ndb._more
|
||||
if not more and hasattr(self.caller, "has_account"):
|
||||
if not more and inherits_from(self.caller, evennia.DefaultObject):
|
||||
more = self.caller.account.ndb._more
|
||||
if not more:
|
||||
self.caller.msg("Error in loading the pager. Contact an admin.")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue