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
|
Implement the command
|
||||||
"""
|
"""
|
||||||
more = self.caller.ndb._more
|
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
|
cmd = self.cmdstring
|
||||||
|
|
||||||
if cmd in ("abort", "a"):
|
if cmd in ("abort", "a"):
|
||||||
|
|
@ -188,6 +194,6 @@ def msg(caller, text="", **kwargs):
|
||||||
More-supported version of msg, mimicking the
|
More-supported version of msg, mimicking the
|
||||||
normal msg method.
|
normal msg method.
|
||||||
"""
|
"""
|
||||||
always_more = kwargs.pop("always_more", False)
|
always_page = kwargs.pop("always_page", False)
|
||||||
EvMore(caller, text, always_more, **kwargs)
|
EvMore(caller, text, always_page, **kwargs)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue