Software /
code /
prosody
Comparison
plugins/muc/muc.lib.lua @ 7270:df22e314946c
MUC: Use already initialized logger
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Fri, 11 Mar 2016 20:35:26 +0100 |
parent | 7120:a6afe52159f1 |
child | 7346:4ea5ce5efff8 |
comparison
equal
deleted
inserted
replaced
7269:cde4ef90cf3d | 7270:df22e314946c |
---|---|
17 local jid_split = require "util.jid".split; | 17 local jid_split = require "util.jid".split; |
18 local jid_bare = require "util.jid".bare; | 18 local jid_bare = require "util.jid".bare; |
19 local jid_prep = require "util.jid".prep; | 19 local jid_prep = require "util.jid".prep; |
20 local jid_join = require "util.jid".join; | 20 local jid_join = require "util.jid".join; |
21 local st = require "util.stanza"; | 21 local st = require "util.stanza"; |
22 local log = require "util.logger".init("mod_muc"); | |
23 local base64 = require "util.encodings".base64; | 22 local base64 = require "util.encodings".base64; |
24 local md5 = require "util.hashes".md5; | 23 local md5 = require "util.hashes".md5; |
24 | |
25 local log = module._log; | |
25 | 26 |
26 local occupant_lib = module:require "muc/occupant" | 27 local occupant_lib = module:require "muc/occupant" |
27 local muc_util = module:require "muc/util"; | 28 local muc_util = module:require "muc/util"; |
28 local is_kickable_error = muc_util.is_kickable_error; | 29 local is_kickable_error = muc_util.is_kickable_error; |
29 local valid_roles, valid_affiliations = muc_util.valid_roles, muc_util.valid_affiliations; | 30 local valid_roles, valid_affiliations = muc_util.valid_roles, muc_util.valid_affiliations; |