diff options
| author | olive <olive@olive.ooo> | 2026-09-13 17:05:53 +0100 |
|---|---|---|
| committer | olive <olive@olive.ooo> | 2026-09-13 17:14:35 +0100 |
| commit | e866f674651d590706b586a346957576c2b7d55c (patch) | |
| tree | d80c71f7836ac49f1824d51dfcf3ff91cf8e4614 | |
| parent | 359b94d98084b1e005d5add74f3739f6ef36aa8b (diff) | |
xmpp: multi-muc, sep out user resolution
| -rw-r--r-- | xmpp/pylon.lua | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/xmpp/pylon.lua b/xmpp/pylon.lua index 5056f18..e8f6e9e 100644 --- a/xmpp/pylon.lua +++ b/xmpp/pylon.lua @@ -52,7 +52,8 @@ end function Xmpp.add_channel(self, channel) local muc = { nick_to_user={}, user_to_nick={} } self.mucs[channel.descriptor] = muc - self.nick_bot = self:ensure_and_get_user(channel.descriptor, "wilson") + local bot = {} ; self.bot = bot + bot.user, bot.nick, bot.user_jid, bot.nick_jid = self:ensure_and_get_user(channel.descriptor, "wilson") end function Xmpp.ensure_and_get_user(self, muc_jid, nick) |
