From f57aaa65cd582fb2a02c71bc681b20b62d12f7ea Mon Sep 17 00:00:00 2001 From: Griatch Date: Mon, 11 Apr 2016 23:57:41 +0200 Subject: [PATCH] Made the return of multimatch commands more easily parsable by using the query rather than the key. Resolves the second part of #933. --- evennia/utils/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/evennia/utils/utils.py b/evennia/utils/utils.py index f0be22e9fa..ae67b91fd6 100644 --- a/evennia/utils/utils.py +++ b/evennia/utils/utils.py @@ -1554,7 +1554,7 @@ def at_search_result(matches, caller, query="", quiet=False, **kwargs): for num, result in enumerate(matches): error += "\n %i%s%s%s" % ( num + 1, _MULTIMATCH_SEPARATOR, - result.get_display_name(caller) if hasattr(result, "get_display_name") else result.key, + result.get_display_name(caller) if hasattr(result, "get_display_name") else query, result.get_extra_info(caller)) matches = None else: