diff --git a/CHANGELOG.md b/CHANGELOG.md index 46b71c5f58..96fa32b3d8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -177,6 +177,8 @@ Up requirements to Django 4.0+, Twisted 22+, Python 3.9 or 3.10 - New contrib `name_generator` for building random real-world based or fantasy-names based on phonetic rules. - Enable proper serialization of dict subclasses in Attributes (aogier) +- `object.search` fuzzy-matching now uses `icontains` instead of `istartswith` + to better match how search works elsewhere (volund) ## Evennia 0.9.5 diff --git a/evennia/objects/objects.py b/evennia/objects/objects.py index 7ae296bf2c..5b012000f3 100644 --- a/evennia/objects/objects.py +++ b/evennia/objects/objects.py @@ -13,7 +13,6 @@ from collections import defaultdict import inflect from django.conf import settings from django.utils.translation import gettext as _ - from evennia.commands import cmdset from evennia.commands.cmdsethandler import CmdSetHandler from evennia.objects.manager import ObjectManager @@ -1555,7 +1554,9 @@ class DefaultObject(ObjectDB, metaclass=TypeclassBase): } ) - location.msg_contents((string, {"type": move_type}), exclude=(self,), from_obj=self, mapping=mapping) + location.msg_contents( + (string, {"type": move_type}), exclude=(self,), from_obj=self, mapping=mapping + ) def announce_move_to(self, source_location, msg=None, mapping=None, move_type="move", **kwargs): """ @@ -1623,7 +1624,9 @@ class DefaultObject(ObjectDB, metaclass=TypeclassBase): } ) - destination.msg_contents((string, {"type": move_type}), exclude=(self,), from_obj=self, mapping=mapping) + destination.msg_contents( + (string, {"type": move_type}), exclude=(self,), from_obj=self, mapping=mapping + ) def at_post_move(self, source_location, move_type="move", **kwargs): """