diff options
| author | olive <olive@olive.ooo> | 2026-09-27 01:29:02 +0100 |
|---|---|---|
| committer | olive <olive@olive.ooo> | 2026-09-27 01:29:02 +0100 |
| commit | 59d210c7139358f769441db8c5c0d92db17065f1 (patch) | |
| tree | c9abd266f4285c641943c9f4436c3171fd3a0ad4 /message.lua | |
| parent | e18625310d9e71a1297634e46ea60bde8a782d44 (diff) | |
Pylon Message IDsolive
Not stored. Not IRC.
Diffstat (limited to 'message.lua')
| -rw-r--r-- | message.lua | 2 |
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 |
