summaryrefslogtreecommitdiff
path: root/message.lua
diff options
context:
space:
mode:
authorolive <olive@olive.ooo>2026-09-27 01:29:02 +0100
committerolive <olive@olive.ooo>2026-09-27 01:29:02 +0100
commit59d210c7139358f769441db8c5c0d92db17065f1 (patch)
treec9abd266f4285c641943c9f4436c3171fd3a0ad4 /message.lua
parente18625310d9e71a1297634e46ea60bde8a782d44 (diff)
Pylon Message IDsolive
Not stored. Not IRC.
Diffstat (limited to 'message.lua')
-rw-r--r--message.lua2
1 files changed, 2 insertions, 0 deletions
diff --git a/message.lua b/message.lua
index 092f332..834208e 100644
--- a/message.lua
+++ b/message.lua
@@ -13,6 +13,8 @@ function Message.make(cls, self)
author=Thing,
} do assert(class.is(self[k],v), 'field '..k..' missing or wrong') end
assert(type(self.body)=='string','field body missing or wrong')
+ assert(type(self.pylon_ids)=='table','field pylon_ids missing or wrong')
+ assert(self.pylon_ids[self.pylon],'missing pylon_ids id for originating pylon!')
assert(self.pylon == self.channel.pylon and self.pylon == self.author.pylon,
"inconsistent pylons!")
return self end