Fixed bug in get command that let you pick something up several times.

This commit is contained in:
Griatch 2011-09-04 07:27:11 +00:00
parent 71bdc47fbb
commit bc587dfd0c

View file

@ -272,6 +272,9 @@ class CmdGet(MuxCommand):
# don't allow picking up player objects, nor exits.
caller.msg("You can't get that.")
return
if obj.location == caller:
caller.msg("You already hold that.")
return
if not obj.access(caller, 'get'):
if obj.db.get_err_msg:
caller.msg(obj.db.get_err_msg)