Minor cleaup of multiple-match return for commands.

This commit is contained in:
Griatch 2011-08-11 21:58:03 +00:00
parent 2b4e008d18
commit c7605e9dc5

View file

@ -241,10 +241,10 @@ def at_multimatch_cmd(caller, matches):
id2 = "" id2 = ""
if not (is_channel or is_exit) and (hasattr(cmd, 'obj') and cmd.obj != caller): if not (is_channel or is_exit) and (hasattr(cmd, 'obj') and cmd.obj != caller):
# the command is defined on some other object # the command is defined on some other object
id1 = "%s-" % cmd.obj.key id1 = "%s-%s" % (num + 1, cmdname)
id2 = " (%s-%s)" % (num + 1, cmdname) id2 = " (%s)" % (cmd.obj.key)
else: else:
id1 = "%s-" % (num + 1) id1 = "%s-%s" % (num + 1, cmdname)
id2 = "" id2 = ""
string += "\n %s%s%s%s%s" % (id1, cmdname, id2, is_channel, is_exit) string += "\n %s%s%s%s" % (id1, id2, is_channel, is_exit)
return string return string