Merge pull request #3580 from erratic-pattern/v4.1.1-patched

fix(find/loc): show dbref of target location instead of target
This commit is contained in:
Griatch 2024-07-10 19:34:59 +02:00 committed by GitHub
commit 4db4fe8666
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -3293,7 +3293,7 @@ class CmdFind(COMMAND_DEFAULT_CLASS):
if "loc" in self.switches and not is_account and result.location:
string += (
f" (|wlocation|n: |g{result.location.get_display_name(caller)}"
f"{result.get_extra_display_name_info(caller)}|n)"
f"{result.location.get_extra_display_name_info(caller)}|n)"
)
else:
# Not an account/dbref search but a wider search; build a queryset.