From dff5363f96029aba6d0f222d3e31ab3888d7111f Mon Sep 17 00:00:00 2001 From: rebecca Date: Thu, 24 Sep 2026 16:50:51 +0100 Subject: rename descriptor -> id because augh --- xmpp/pylon.lua | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'xmpp') diff --git a/xmpp/pylon.lua b/xmpp/pylon.lua index c9f18f5..0e6094c 100644 --- a/xmpp/pylon.lua +++ b/xmpp/pylon.lua @@ -51,9 +51,9 @@ end function Xmpp.add_channel(self, channel) local muc = { nick_to_user={}, user_to_nick={} } - self.mucs[channel.descriptor] = muc + self.mucs[channel.id] = muc local bot = {} ; self.bot = bot - bot.user, bot.nick, bot.user_jid, bot.nick_jid = self:ensure_and_get_user(channel.descriptor, "wilson") + bot.user, bot.nick, bot.user_jid, bot.nick_jid = self:ensure_and_get_user(channel.id, "wilson") end function Xmpp.ensure_and_get_user(self, muc_jid, msg_sender, source_pylon) @@ -133,9 +133,9 @@ function Xmpp.sending(self) for dest_channel, message in self.inbox:iter() do self.log:proto('>',dest_channel,message.sender,message.body) local user, nick, user_jid, nick_jid - = self:ensure_and_get_user(dest_channel.descriptor, message.sender, message.source_channel.pylon) + = self:ensure_and_get_user(dest_channel.id, message.sender, message.source_channel.pylon) self.sock:write(xmlify( - X.message{to=dest_channel.descriptor, type='groupchat', from=user_jid, + X.message{to=dest_channel.id, type='groupchat', from=user_jid, X.body{message.body}})) end end -- cgit v1.2.3