Comparison

plugins/muc/mod_muc.lua @ 10693:76bb806cdd4b

MUC: Add initial hats support (broadcast only) Based on the currently-deferred XEP-0317. The protocol differs a little (because XEP-0317 is incomplete), therefore currently we use a custom namespace. The plan is to update and finish XEP-0317.
author Matthew Wild <mwild1@gmail.com>
date Wed, 18 Mar 2020 17:42:56 +0000
parent 10647:d1bfda983ffe
child 10698:e4034f6668a5
comparison
equal deleted inserted replaced
10692:a0480ee2233a 10693:76bb806cdd4b
103 103
104 module:depends("disco"); 104 module:depends("disco");
105 module:add_identity("conference", "text", module:get_option_string("name", "Prosody Chatrooms")); 105 module:add_identity("conference", "text", module:get_option_string("name", "Prosody Chatrooms"));
106 module:add_feature("http://jabber.org/protocol/muc"); 106 module:add_feature("http://jabber.org/protocol/muc");
107 module:depends "muc_unique" 107 module:depends "muc_unique"
108 module:require "muc/hats";
108 module:require "muc/lock"; 109 module:require "muc/lock";
109 110
110 local function is_admin(jid) 111 local function is_admin(jid)
111 return um_is_admin(jid, module.host); 112 return um_is_admin(jid, module.host);
112 end 113 end