Added some functionality to command 'get' to match wiki tutorial.
This commit is contained in:
parent
2cee32a75b
commit
96be66828c
1 changed files with 5 additions and 4 deletions
|
|
@ -89,8 +89,7 @@ class CmdNick(MuxCommand):
|
||||||
alias[/switches] <alias> = [<string>]
|
alias[/switches] <alias> = [<string>]
|
||||||
nick ''
|
nick ''
|
||||||
|
|
||||||
Switches:
|
Switches: obj - alias an object
|
||||||
obj - alias an object
|
|
||||||
player - alias a player
|
player - alias a player
|
||||||
clearall - clear all your aliases
|
clearall - clear all your aliases
|
||||||
list - show all defined aliases
|
list - show all defined aliases
|
||||||
|
|
@ -323,8 +322,10 @@ class CmdGet(MuxCommand):
|
||||||
caller.msg("You can't get that.")
|
caller.msg("You can't get that.")
|
||||||
return
|
return
|
||||||
if not has_perm(caller, obj, 'get'):
|
if not has_perm(caller, obj, 'get'):
|
||||||
#TODO - have the object store fail messages?
|
if obj.db.get_err_msg:
|
||||||
caller.msg("You can't get that.")
|
caller.msg(obj.db.get_err_msg)
|
||||||
|
else:
|
||||||
|
caller.msg("You can't get that.")
|
||||||
return
|
return
|
||||||
|
|
||||||
obj.move_to(caller, quiet=True)
|
obj.move_to(caller, quiet=True)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue