Fix of code in searching-things tutorial. Resolve #3213

This commit is contained in:
Griatch 2023-07-14 14:11:26 +02:00
parent 0523264aae
commit 2e70be96b1

View file

@ -70,9 +70,9 @@ class CmdQuickFind(Command):
def func(self): def func(self):
query = self.args query = self.args
result = self.caller.search(query) result = self.caller.search(query)
if not result if not result:
return return
self.caller.msg(f"Found match for {query}: {foo}") self.caller.msg(f"Found match for {query}: {result}")
``` ```
Remember, `self.caller` is the one calling the command. This is usually a Character, which Remember, `self.caller` is the one calling the command. This is usually a Character, which