Mercurial > prosody-modules
changeset 103:0491aa849c91
mod_muc_log: make that it logs again
author | Thilo Cestonaro <thilo@cestona.ro> |
---|---|
date | Wed, 02 Dec 2009 23:07:58 +0100 (2009-12-02) |
parents | a10ab09096e2 |
children | dc0fe152cadc |
files | mod_muc_log/mod_muc_log.lua |
diffstat | 1 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- 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!");