diff options
author | Matthew Wild <mwild1@gmail.com> | 2010-07-17 15:20:45 +0100 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2010-07-17 15:20:45 +0100 |
commit | fbcbfcbf8d60bcb8aa9f704d3cf09da3223d4013 (patch) | |
tree | 5536d29d00f67ca9e9d49b369e203447b06c056b /plugins/muc | |
parent | 502172efce3cd19c8064aa9854970469afc2e532 (diff) | |
download | prosody-fbcbfcbf8d60bcb8aa9f704d3cf09da3223d4013.tar.gz prosody-fbcbfcbf8d60bcb8aa9f704d3cf09da3223d4013.zip |
MUC: No need to call is_admin twice now, global admins are admins on hosts
Diffstat (limited to 'plugins/muc')
-rw-r--r-- | plugins/muc/mod_muc.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/muc/mod_muc.lua b/plugins/muc/mod_muc.lua index cef31298..a9d9336c 100644 --- a/plugins/muc/mod_muc.lua +++ b/plugins/muc/mod_muc.lua @@ -35,7 +35,7 @@ local component; local max_history_messages = module:get_option_number("max_history_messages"); local function is_admin(jid) - return um_is_admin(jid) or um_is_admin(jid, module.host); + return um_is_admin(jid, module.host); end local function room_route_stanza(room, stanza) core_post_stanza(component, stanza); end |