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:
|
if self.rhs is None:
|
||||||
# no = means we inspect the attribute(s)
|
# no = means we inspect the attribute(s)
|
||||||
if not attrs:
|
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:
|
for attr in attrs:
|
||||||
if obj.attributes.has(attr):
|
if obj.attributes.has(attr):
|
||||||
string += "\nAttribute %s/%s = %s" % (obj.name, attr,
|
string += "\nAttribute %s/%s = %s" % (obj.name, attr,
|
||||||
|
|
@ -1305,7 +1305,7 @@ class CmdSetAttribute(ObjManipCommand):
|
||||||
else:
|
else:
|
||||||
string += "\n%s has no attribute '%s'." % (obj.name, attr)
|
string += "\n%s has no attribute '%s'." % (obj.name, attr)
|
||||||
# we view it without parsing markup.
|
# we view it without parsing markup.
|
||||||
self.caller.msg(string.strip(), data={"raw": True})
|
self.caller.msg(string.strip(), raw=True)
|
||||||
return
|
return
|
||||||
else:
|
else:
|
||||||
# deleting the attribute(s)
|
# deleting the attribute(s)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue