# HG changeset patch # User JC Brand # Date 1607947518 -3600 # Node ID 4a5c4a352b7881290055c3a1a3693c8b5eb29671 # Parent 08138de4cb8807c4bc748bbb50c82c7af2061d6f mod_muc_rai: Use xmlns from XEP-0437 diff -r 08138de4cb88 -r 4a5c4a352b78 mod_muc_rai/mod_muc_rai.lua --- a/mod_muc_rai/mod_muc_rai.lua Sat Dec 12 18:19:14 2020 +0100 +++ b/mod_muc_rai/mod_muc_rai.lua Mon Dec 14 13:05:18 2020 +0100 @@ -7,7 +7,7 @@ local muc_affiliation_store = module:open_store("config", "map"); local muc_archive = module:open_store("muc_log", "archive"); -local xmlns_rai = "xmpp:prosody.im/protocol/rai"; +local xmlns_rai = "urn:xmpp:rai:0"; local muc_markers = module:depends("muc_markers"); @@ -188,7 +188,7 @@ module:hook("muc-occupant-joined", function(event) local room_jid, user_jid = event.room.jid, event.stanza.attr.from; - local ok, err = unsubscribe_room(user_jid, room_jid); + local ok, _ = unsubscribe_room(user_jid, room_jid); if ok then module:log("debug", "Unsubscribed %s to %s Reason: muc-occupant-joined", user_jid, room_jid) end @@ -196,7 +196,7 @@ module:hook("muc-occupant-left", function(event) local room_jid, user_jid = event.room.jid, event.stanza.attr.from; - local ok, err = subscribe_room(user_jid, room_jid); + local ok, _ = subscribe_room(user_jid, room_jid); if ok then module:log("debug", "Subscribed %s to %s Reason: muc-occupant-left", user_jid, room_jid) end @@ -245,4 +245,3 @@ notify_interested_users(room.jid); end end, -1); -