Added some functionality to command 'get' to match wiki tutorial.

This commit is contained in:
Griatch 2010-08-31 11:24:08 +00:00
parent 2cee32a75b
commit 96be66828c

View file

@ -89,8 +89,7 @@ class CmdNick(MuxCommand):
alias[/switches] <alias> = [<string>]
nick ''
Switches:
obj - alias an object
Switches: obj - alias an object
player - alias a player
clearall - clear all your aliases
list - show all defined aliases
@ -323,8 +322,10 @@ class CmdGet(MuxCommand):
caller.msg("You can't get that.")
return
if not has_perm(caller, obj, 'get'):
#TODO - have the object store fail messages?
caller.msg("You can't get that.")
if obj.db.get_err_msg:
caller.msg(obj.db.get_err_msg)
else:
caller.msg("You can't get that.")
return
obj.move_to(caller, quiet=True)