From 62a13a94a4f4012197e9a86c490eb0046d129ca3 Mon Sep 17 00:00:00 2001 From: Ahmed Charles Date: Tue, 10 Feb 2015 17:39:52 +0000 Subject: [PATCH] Give should only look in the inventory and could use a custom message. --- evennia/commands/default/general.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/evennia/commands/default/general.py b/evennia/commands/default/general.py index 21cee64fa2..3175b33421 100644 --- a/evennia/commands/default/general.py +++ b/evennia/commands/default/general.py @@ -312,7 +312,9 @@ class CmdGive(MuxCommand): if not self.args or not self.rhs: caller.msg("Usage: give = ") return - to_give = caller.search(self.lhs) + to_give = caller.search(self.lhs, location=caller, + nofound_string="You aren't carrying %s." % self.lhs, + multimatch_string="You carry more than one %s:" % self.lhs) target = caller.search(self.rhs) if not (to_give and target): return