Comparison

plugins/muc/mod_muc.lua @ 3388:02e668d64e05

MUC: No need to call is_admin twice now, global admins are admins on hosts
author Matthew Wild <mwild1@gmail.com>
date Sat, 17 Jul 2010 15:20:45 +0100
parent 3330:bdc325ce9fbc
child 3510:711eb5bf94b4
comparison
equal deleted inserted replaced
3387:ebb8d0f9a177 3388:02e668d64e05
33 33
34 -- Configurable options 34 -- Configurable options
35 local max_history_messages = module:get_option_number("max_history_messages"); 35 local max_history_messages = module:get_option_number("max_history_messages");
36 36
37 local function is_admin(jid) 37 local function is_admin(jid)
38 return um_is_admin(jid) or um_is_admin(jid, module.host); 38 return um_is_admin(jid, module.host);
39 end 39 end
40 40
41 local function room_route_stanza(room, stanza) core_post_stanza(component, stanza); end 41 local function room_route_stanza(room, stanza) core_post_stanza(component, stanza); end
42 local function room_save(room, forced) 42 local function room_save(room, forced)
43 local node = jid_split(room.jid); 43 local node = jid_split(room.jid);