Fix to catch non @ version of command
This commit is contained in:
parent
7f9fad5594
commit
a9648cf2bb
1 changed files with 2 additions and 2 deletions
|
|
@ -2315,7 +2315,7 @@ class CmdFind(COMMAND_DEFAULT_CLASS):
|
||||||
else:
|
else:
|
||||||
result = result[0]
|
result = result[0]
|
||||||
string += "\n|g %s - %s|n" % (result.get_display_name(caller), result.path)
|
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))
|
string += " Location: {}".format(result.location.get_display_name(caller))
|
||||||
else:
|
else:
|
||||||
# Not an account/dbref search but a wider search; build a queryset.
|
# Not an account/dbref search but a wider search; build a queryset.
|
||||||
|
|
@ -2352,7 +2352,7 @@ class CmdFind(COMMAND_DEFAULT_CLASS):
|
||||||
else:
|
else:
|
||||||
string = "|wOne Match|n(#%i-#%i%s):" % (low, high, restrictions)
|
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)
|
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))
|
string += " Location: {}".format(results[0].location.get_display_name(caller))
|
||||||
else:
|
else:
|
||||||
string = "|wMatch|n(#%i-#%i%s):" % (low, high, restrictions)
|
string = "|wMatch|n(#%i-#%i%s):" % (low, high, restrictions)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue