Software /
code /
prosody-modules
Changeset
4058:cf9a1c7d558d
mod_muc_rai: Don't store/modify existing table to track rooms
This was a simple bug that took a while to track down.
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Thu, 02 Jul 2020 12:17:53 +0100 |
parents | 4057:2ede3450abca |
children | 4059:072366857d79 |
files | mod_muc_rai/mod_muc_rai.lua |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/mod_muc_rai/mod_muc_rai.lua Thu Jul 02 12:09:24 2020 +0100 +++ b/mod_muc_rai/mod_muc_rai.lua Thu Jul 02 12:17:53 2020 +0100 @@ -158,7 +158,7 @@ interested_rooms = {}; end - if not subscribed_users:set(user_jid, interested_rooms) then + if not subscribed_users:set(user_jid, {}) then module:log("warn", "Subscriber limit (%d) reached, rejecting subscription from %s", max_subscribers, user_jid); return nil, "resource-constraint"; end