From 21e4df0c91bd186d07a741a3142665e8fd0ad3bd Mon Sep 17 00:00:00 2001 From: Greg Taylor Date: Thu, 15 Jan 2009 15:28:44 +0000 Subject: [PATCH] More work on the page command. Slightly closer to MUX2 behavior, although there's still a way to go. --- src/commands/paging.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/commands/paging.py b/src/commands/paging.py index 0ecad3e9ff..5f763bcfa7 100644 --- a/src/commands/paging.py +++ b/src/commands/paging.py @@ -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"