def func(self):
        "evaluate an object"
        caller = self.caller
        if not self.args:
            caller.msg("Usage: evaluate <offered object>")
            return
        # we also accept indices
        try:
            ind = int(self.args)
            self.args = ind - 1
        except Exception:
            pass

        offer = self.tradehandler.search(self.args)
        if not offer:
            caller.msg(self.args % "No offer matching '%s' was found.")
            return
        # show the description
        caller.msg(offer.db.desc)


# status
dataset/ETHPy150Open evennia/evennia/evennia/contrib/barter.py/CmdEvaluate.func/swapped operands of `%`