summaryrefslogtreecommitdiff
path: root/thing.lua
diff options
context:
space:
mode:
authorrebecca <ubq323@ubq323.website>2026-09-24 17:20:42 +0100
committerrebecca <ubq323@ubq323.website>2026-09-24 18:55:05 +0100
commit71cee0014368f5d83fe94989526a4ffb2824f50c (patch)
treecd87a5c7d859d98f48866ff769ef89d60a28d5d5 /thing.lua
parentdff5363f96029aba6d0f222d3e31ab3888d7111f (diff)
change fields on Message to include author
Diffstat (limited to 'thing.lua')
-rw-r--r--thing.lua3
1 files changed, 3 insertions, 0 deletions
diff --git a/thing.lua b/thing.lua
index f7cc32a..eee742b 100644
--- a/thing.lua
+++ b/thing.lua
@@ -19,4 +19,7 @@ function Thing.__tostring(self)
.. ':' .. self.id
.. (self.name == self.id and '('..self.name..')' or '')
end
+function Thing.name_with_shortname(self)
+ return self.name .. ' [' .. self.pylon.shortname .. ']'
+end
return Thing