Changeset

4297:4a5c4a352b78

mod_muc_rai: Use xmlns from XEP-0437
author JC Brand <jc@opkode.com>
date Mon, 14 Dec 2020 13:05:18 +0100
parents 4296:08138de4cb88
children 4298:020dd0a59f1f
files mod_muc_rai/mod_muc_rai.lua
diffstat 1 files changed, 3 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- 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);
-