mirror of
https://github.com/evennia/evennia.git
synced 2026-04-01 21:47:17 +02:00
Fix player/char reference in evmore, also fixed a calling bug in evmore.msg using the wrong kwarg.
This commit is contained in:
parent
9856ac735d
commit
af8e54c027
1 changed files with 8 additions and 2 deletions
|
|
@ -58,6 +58,12 @@ class CmdMore(Command):
|
|||
Implement the command
|
||||
"""
|
||||
more = self.caller.ndb._more
|
||||
if not more and hasattr(self.caller, "player"):
|
||||
more = self.caller.player.ndb._more
|
||||
if not more:
|
||||
self.caller.msg("Error in loading the pager. Contact an admin.")
|
||||
return
|
||||
|
||||
cmd = self.cmdstring
|
||||
|
||||
if cmd in ("abort", "a"):
|
||||
|
|
@ -188,6 +194,6 @@ def msg(caller, text="", **kwargs):
|
|||
More-supported version of msg, mimicking the
|
||||
normal msg method.
|
||||
"""
|
||||
always_more = kwargs.pop("always_more", False)
|
||||
EvMore(caller, text, always_more, **kwargs)
|
||||
always_page = kwargs.pop("always_page", False)
|
||||
EvMore(caller, text, always_page, **kwargs)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue