From eacdf8b33c340bf79c22e4a441d04e8e8660a612 Mon Sep 17 00:00:00 2001 From: Greg Taylor Date: Sun, 25 Jan 2009 01:37:43 +0000 Subject: [PATCH] Fix posing (for real this time.) --- src/cmdhandler.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/cmdhandler.py b/src/cmdhandler.py index d4716eae85..4273de8601 100755 --- a/src/cmdhandler.py +++ b/src/cmdhandler.py @@ -203,8 +203,11 @@ def match_alias(command): Convenience sub-function to combine the lopped off command string and arguments for posing, saying, and nospace posing aliases. """ - return "%s %s" % (command.command_string[1:], - command.command_argument) + if not command.command_argument: + return command.command_string[1:] + else: + return "%s %s" % (command.command_string[1:], + command.command_argument) # Match against the single-character aliases of MUX/MUSH-dom. first_char = command.command_string[0]