From a9648cf2bbc7b3e0bce17ab283f885c7023ba81a Mon Sep 17 00:00:00 2001 From: BlauFeuer Date: Fri, 19 Jan 2018 05:28:03 -0500 Subject: [PATCH] Fix to catch non `@` version of command --- evennia/commands/default/building.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/evennia/commands/default/building.py b/evennia/commands/default/building.py index 9a7caf8567..de263fa4ff 100644 --- a/evennia/commands/default/building.py +++ b/evennia/commands/default/building.py @@ -2315,7 +2315,7 @@ class CmdFind(COMMAND_DEFAULT_CLASS): else: result = result[0] string += "\n|g %s - %s|n" % (result.get_display_name(caller), result.path) - if self.cmdstring == "@locate" and not is_account and result.location: + if "locate" in self.cmdstring and not is_account and result.location: string += " Location: {}".format(result.location.get_display_name(caller)) else: # Not an account/dbref search but a wider search; build a queryset. @@ -2352,7 +2352,7 @@ class CmdFind(COMMAND_DEFAULT_CLASS): else: string = "|wOne Match|n(#%i-#%i%s):" % (low, high, restrictions) string += "\n |g%s - %s|n" % (results[0].get_display_name(caller), results[0].path) - if self.cmdstring == "@locate" and nresults == 1 and results[0].location: + if "locate" in self.cmdstring and nresults == 1 and results[0].location: string += " Location: {}".format(results[0].location.get_display_name(caller)) else: string = "|wMatch|n(#%i-#%i%s):" % (low, high, restrictions)