CmdLook use_dbref by Builders perm group #1251
Only allow referencing targets to view by #dbid if viewer is in Builders permission group
This commit is contained in:
parent
b2140b4ba1
commit
b0ac809229
1 changed files with 5 additions and 4 deletions
|
|
@ -60,16 +60,17 @@ class CmdLook(COMMAND_DEFAULT_CLASS):
|
|||
"""
|
||||
Handle the looking.
|
||||
"""
|
||||
caller = self.caller
|
||||
if not self.args:
|
||||
target = self.caller.location
|
||||
target = caller.location
|
||||
if not target:
|
||||
self.caller.msg("You have no location to look at!")
|
||||
caller.msg("You have no location to look at!")
|
||||
return
|
||||
else:
|
||||
target = self.caller.search(self.args)
|
||||
target = caller.search(self.args, use_dbref=caller.check_permstring("Builders"))
|
||||
if not target:
|
||||
return
|
||||
self.msg(self.caller.at_look(target))
|
||||
self.msg(caller.at_look(target))
|
||||
|
||||
|
||||
class CmdNick(COMMAND_DEFAULT_CLASS):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue