Comparison

mod_muc_limits/mod_muc_limits.lua @ 3402:6a3060d5e85d

mod_muc_limits: Document brokenness with 0.11.x
author Kim Alvefur <zash@zash.se>
date Tue, 11 Dec 2018 18:27:40 +0100
parent 3188:5c3f3f5a4377
child 3417:1534d0715d35
comparison
equal deleted inserted replaced
3401:8412592f3011 3402:6a3060d5e85d
1 1
2 local mod_muc = module:depends"muc"; 2 local mod_muc = module:depends"muc";
3 local rooms = rawget(mod_muc, "rooms"); -- Old MUC API 3 local rooms = rawget(mod_muc, "rooms"); -- Old MUC API
4 if not rooms then 4 if not rooms then
5 rooms = module:shared"muc/rooms"; -- New MUC API 5 error "Not compatible with 0.11 MUC API"
6 end 6 end
7 7
8 local jid_split, jid_bare = require "util.jid".split, require "util.jid".bare; 8 local jid_split, jid_bare = require "util.jid".split, require "util.jid".bare;
9 local st = require "util.stanza"; 9 local st = require "util.stanza";
10 local new_throttle = require "util.throttle".create; 10 local new_throttle = require "util.throttle".create;