mirror of
https://github.com/evennia/evennia.git
synced 2026-03-28 10:37:16 +01:00
More work on the page command. Slightly closer to MUX2 behavior, although there's still a way to go.
This commit is contained in:
parent
f5ba11e7e7
commit
21e4df0c91
1 changed files with 7 additions and 2 deletions
|
|
@ -57,6 +57,11 @@ def cmd_page(command):
|
|||
cmd_targets = command.get_arg_targets()
|
||||
if cmd_targets is None:
|
||||
targets = last_paged_objects
|
||||
|
||||
# No valid last paged players found, error out.
|
||||
if not targets:
|
||||
session.msg("Page who?")
|
||||
return
|
||||
else:
|
||||
# For each of the targets listed, grab their objects and append
|
||||
# it to the targets list
|
||||
|
|
@ -88,8 +93,8 @@ def cmd_page(command):
|
|||
message = message[1:]
|
||||
target_message = "From afar, %s %s"
|
||||
sender_message = "Long distance to %s: %s %s"
|
||||
# Handle paged emotes without spaces
|
||||
if message.startswith(';'):
|
||||
# Handle paged emotes without spaces
|
||||
elif message.startswith(';'):
|
||||
message = message[1:]
|
||||
target_message = "From afar, %s%s"
|
||||
sender_message = "Long distance to %s: %s%s"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue