From 59d210c7139358f769441db8c5c0d92db17065f1 Mon Sep 17 00:00:00 2001 From: olive Date: Sun, 27 Sep 2026 01:29:02 +0100 Subject: Pylon Message IDs Not stored. Not IRC. --- message.lua | 2 ++ 1 file changed, 2 insertions(+) (limited to 'message.lua') 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 -- cgit v1.2.3