Fixed a wrong return from search_player with quiet=True. Fixes a traceback when using the find command to search for a player *me or *self.

This commit is contained in:
Griatch 2016-04-12 22:09:07 +02:00
parent 143df2a793
commit 02ba1c0695

View file

@ -414,7 +414,7 @@ class DefaultObject(with_metaclass(TypeclassBase, ObjectDB)):
if isinstance(searchdata, basestring):
# searchdata is a string; wrap some common self-references
if searchdata.lower() in ("me", "self",):
return self.player
return [self.player] if quiet else self.player
results = self.player.__class__.objects.player_search(searchdata)