Comparison

plugins/mod_carbons.lua @ 11836:8ccb22c0fa56

mod_carbons: Advertise following of recommended rules (closes #1486) We're doing our best!
author Kim Alvefur <zash@zash.se>
date Tue, 05 Oct 2021 17:02:32 +0200
parent 11796:71c20650a0b4
child 12234:1c47162dd965
comparison
equal deleted inserted replaced
11835:a405884c62f4 11836:8ccb22c0fa56
7 local jid_bare = require "util.jid".bare; 7 local jid_bare = require "util.jid".bare;
8 local jid_resource = require "util.jid".resource; 8 local jid_resource = require "util.jid".resource;
9 local xmlns_carbons = "urn:xmpp:carbons:2"; 9 local xmlns_carbons = "urn:xmpp:carbons:2";
10 local xmlns_forward = "urn:xmpp:forward:0"; 10 local xmlns_forward = "urn:xmpp:forward:0";
11 local full_sessions, bare_sessions = prosody.full_sessions, prosody.bare_sessions; 11 local full_sessions, bare_sessions = prosody.full_sessions, prosody.bare_sessions;
12
13 module:add_feature("urn:xmpp:carbons:rules:0");
12 14
13 local function is_bare(jid) 15 local function is_bare(jid)
14 return not jid_resource(jid); 16 return not jid_resource(jid);
15 end 17 end
16 18