mirror of
https://github.com/evennia/evennia.git
synced 2026-03-27 10:16:32 +01:00
Fixed outbut listing bug in @set.
This commit is contained in:
parent
9dfe620b2b
commit
88efc50054
1 changed files with 2 additions and 2 deletions
|
|
@ -1297,7 +1297,7 @@ class CmdSetAttribute(ObjManipCommand):
|
|||
if self.rhs is None:
|
||||
# no = means we inspect the attribute(s)
|
||||
if not attrs:
|
||||
attrs = [attr.key for attr in obj.get_all_attributes()]
|
||||
attrs = [attr.key for attr in obj.attributes.all()]
|
||||
for attr in attrs:
|
||||
if obj.attributes.has(attr):
|
||||
string += "\nAttribute %s/%s = %s" % (obj.name, attr,
|
||||
|
|
@ -1305,7 +1305,7 @@ class CmdSetAttribute(ObjManipCommand):
|
|||
else:
|
||||
string += "\n%s has no attribute '%s'." % (obj.name, attr)
|
||||
# we view it without parsing markup.
|
||||
self.caller.msg(string.strip(), data={"raw": True})
|
||||
self.caller.msg(string.strip(), raw=True)
|
||||
return
|
||||
else:
|
||||
# deleting the attribute(s)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue