Restore the single-character aliases for say, pose, and pose without spaces. Also add 'p' as an alias for page in initial_data.py as per MUX.

This commit is contained in:
Greg Taylor 2009-01-20 04:18:03 +00:00
parent 5d7fcb67dd
commit 1045d0fabf
2 changed files with 17 additions and 0 deletions

View file

@ -181,6 +181,22 @@ def match_alias(command):
command.command_string,
command.command_string)
# Match against the single-character aliases of MUX/MUSH-dom.
first_char = command.command_string[0]
# Shortened say alias.
if first_char == '"':
command.command_argument = command.command_string[1:]
command.command_string = "say"
# Shortened pose alias.
elif first_char == ':':
command.command_argument = command.command_string[1:]
command.command_string = "pose"
# Pose without space alias.
elif first_char == ';':
command.command_argument = command.command_string[1:]
command.command_string = "pose"
command.command_switches.insert(0, "nospace")
def match_channel(command):
"""
Match against a comsys channel or comsys command. If the player is talking

View file

@ -101,6 +101,7 @@ def create_aliases():
CommandAlias(user_input="ex", equiv_command="examine").save()
CommandAlias(user_input="sa", equiv_command="say").save()
CommandAlias(user_input="emote", equiv_command="pose").save()
CommandAlias(user_input="p", equiv_command="page").save()
def import_help_files():
"""