From b0ac80922998a8738c0454ab5b10a4c0cb267178 Mon Sep 17 00:00:00 2001 From: BlauFeuer Date: Thu, 23 Mar 2017 23:37:37 -0400 Subject: [PATCH] CmdLook use_dbref by Builders perm group #1251 Only allow referencing targets to view by #dbid if viewer is in Builders permission group --- evennia/commands/default/general.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/evennia/commands/default/general.py b/evennia/commands/default/general.py index 21dc70e57..c55f59188 100644 --- a/evennia/commands/default/general.py +++ b/evennia/commands/default/general.py @@ -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):