mirror of
https://github.com/evennia/evennia.git
synced 2026-03-17 05:16:31 +01:00
Fixed page command to properly repage
Page command was attempting to first page players, then repage players, then repage chracaters, then fail. Should reliably repage players, now. Does not permit paging characters.
This commit is contained in:
parent
8c5621025b
commit
b092d29989
1 changed files with 3 additions and 3 deletions
|
|
@ -712,7 +712,7 @@ class CmdPage(MuxPlayerCommand):
|
|||
if isinstance(receiver, basestring):
|
||||
pobj = caller.search(receiver)
|
||||
elif hasattr(receiver, 'character'):
|
||||
pobj = receiver.character
|
||||
pobj = receiver
|
||||
else:
|
||||
self.msg("Who do you want to page?")
|
||||
return
|
||||
|
|
@ -741,13 +741,13 @@ class CmdPage(MuxPlayerCommand):
|
|||
rstrings.append("You are not allowed to page %s." % pobj)
|
||||
continue
|
||||
pobj.msg("%s %s" % (header, message))
|
||||
if hasattr(pobj, 'has_player') and not pobj.has_player:
|
||||
if hasattr(pobj, 'sessions') and not pobj.sessions:
|
||||
received.append("{C%s{n" % pobj.name)
|
||||
rstrings.append("%s is offline. They will see your message if they list their pages later." % received[-1])
|
||||
else:
|
||||
received.append("{c%s{n" % pobj.name)
|
||||
if rstrings:
|
||||
self.msg(rstrings="\n".join(rstrings))
|
||||
self.msg("\n".join(rstrings))
|
||||
self.msg("You paged %s with: '%s'." % (", ".join(received), message))
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue