From 4b9dc9a0c3fb85095468b8276b6f7a735de2feb7 Mon Sep 17 00:00:00 2001 From: Griatch Date: Mon, 16 Aug 2021 21:31:53 +0200 Subject: [PATCH] Give correct error on `set/desc here`. Resolve #2382. --- evennia/commands/default/building.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/evennia/commands/default/building.py b/evennia/commands/default/building.py index 1fe39cb704..b485073979 100644 --- a/evennia/commands/default/building.py +++ b/evennia/commands/default/building.py @@ -1874,6 +1874,11 @@ class CmdSetAttribute(ObjManipCommand): if len(attrs) > 1: caller.msg("The Line editor can only be applied " "to one attribute at a time.") return + if not attrs: + caller.msg("Use `set/edit /` to define the Attribute to edit.\nTo " + "edit the current room description, use `set/edit here/desc` (or " + "use the `desc` command).") + return self.edit_handler(obj, attrs[0]) return if not value: