# HG changeset patch # User Kim Alvefur # Date 1457724926 -3600 # Node ID df22e314946c2a76c61cbd2a13bb5dacfe6da4b1 # Parent cde4ef90cf3d05d76edbcc91a97eb17d01abff05 MUC: Use already initialized logger diff -r cde4ef90cf3d -r df22e314946c plugins/muc/muc.lib.lua --- a/plugins/muc/muc.lib.lua Fri Mar 11 13:41:10 2016 +0100 +++ b/plugins/muc/muc.lib.lua Fri Mar 11 20:35:26 2016 +0100 @@ -19,10 +19,11 @@ local jid_prep = require "util.jid".prep; local jid_join = require "util.jid".join; local st = require "util.stanza"; -local log = require "util.logger".init("mod_muc"); local base64 = require "util.encodings".base64; local md5 = require "util.hashes".md5; +local log = module._log; + local occupant_lib = module:require "muc/occupant" local muc_util = module:require "muc/util"; local is_kickable_error = muc_util.is_kickable_error;