mod_muc_rai: Don't store/modify existing table to track rooms
This was a simple bug that took a while to track down.
--- 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