# HG changeset patch # User Thilo Cestonaro # Date 1259791678 -3600 # Node ID 0491aa849c91ee891f5f0f6092b5be5b18ae663e # Parent a10ab09096e225a282aa619a384b2c7778c16559 mod_muc_log: make that it logs again diff -r a10ab09096e2 -r 0491aa849c91 mod_muc_log/mod_muc_log.lua --- a/mod_muc_log/mod_muc_log.lua Wed Dec 02 22:23:00 2009 +0100 +++ b/mod_muc_log/mod_muc_log.lua Wed Dec 02 23:07:58 2009 +0100 @@ -10,7 +10,7 @@ local datamanager = require "util.datamanager"; local data_load, data_store, data_getpath = datamanager.load, datamanager.store, datamanager.getpath; local datastore = "muc_log"; --- local mod_host = module:get_host(); +local mod_host = module:get_host(); local config = nil; --[[ LuaFileSystem @@ -18,7 +18,7 @@ * Install: luarocks install luafilesystem * ]] local lfs = require "lfs"; ---[[ + local function checkDatastorePathExists(node, host, today, create) create = create or false; local path = data_getpath(node, host, datastore, "dat", true); @@ -130,5 +130,5 @@ module:hook("message/bare", logIfNeeded, 500); module:hook("iq/bare", logIfNeeded, 500); module:hook("presence/full", logIfNeeded, 500); -]]-- + module:log("debug", "module mod_muc_log loaded!");