Comparison

mod_muc_limits/mod_muc_limits.lua @ 1057:0b41122b19f9

mod_muc_limits: Abort loading on non-MUC hosts (thanks Ge0rG)
author Matthew Wild <mwild1@gmail.com>
date Fri, 07 Jun 2013 14:29:01 +0100
parent 1042:5fd0860c86cd
child 1058:1255de347dd4
comparison
equal deleted inserted replaced
1056:b307b72ae527 1057:0b41122b19f9
1
2 if not hosts[module.host].modules.muc then
3 module:log("error", "This module only works on MUC components!");
4 return;
5 end
1 6
2 local jid_split, jid_bare = require "util.jid".split, require "util.jid".bare; 7 local jid_split, jid_bare = require "util.jid".split, require "util.jid".bare;
3 local st = require "util.stanza"; 8 local st = require "util.stanza";
4 local new_throttle = require "util.throttle".create; 9 local new_throttle = require "util.throttle".create;
5 local t_insert, t_concat = table.insert, table.concat; 10 local t_insert, t_concat = table.insert, table.concat;