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()
|
cmd_targets = command.get_arg_targets()
|
||||||
if cmd_targets is None:
|
if cmd_targets is None:
|
||||||
targets = last_paged_objects
|
targets = last_paged_objects
|
||||||
|
|
||||||
|
# No valid last paged players found, error out.
|
||||||
|
if not targets:
|
||||||
|
session.msg("Page who?")
|
||||||
|
return
|
||||||
else:
|
else:
|
||||||
# For each of the targets listed, grab their objects and append
|
# For each of the targets listed, grab their objects and append
|
||||||
# it to the targets list
|
# it to the targets list
|
||||||
|
|
@ -89,7 +94,7 @@ def cmd_page(command):
|
||||||
target_message = "From afar, %s %s"
|
target_message = "From afar, %s %s"
|
||||||
sender_message = "Long distance to %s: %s %s"
|
sender_message = "Long distance to %s: %s %s"
|
||||||
# Handle paged emotes without spaces
|
# Handle paged emotes without spaces
|
||||||
if message.startswith(';'):
|
elif message.startswith(';'):
|
||||||
message = message[1:]
|
message = message[1:]
|
||||||
target_message = "From afar, %s%s"
|
target_message = "From afar, %s%s"
|
||||||
sender_message = "Long distance to %s: %s%s"
|
sender_message = "Long distance to %s: %s%s"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue