Diff

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
line wrap: on
line diff
--- 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;