muc.lib: return feature-not-implemented when a foregoing discovery node is specified...
[prosody.git] / plugins / mod_posix.lua
index d229c1b8e35fd74f202b6e91e68c3c9318524ce1..1670ac9586642b752b3e60ff451005aff369aef5 100644 (file)
@@ -22,7 +22,7 @@ local stat = lfs.attributes;
 
 local prosody = _G.prosody;
 
-module.host = "*"; -- we're a global module
+module:set_global(); -- we're a global module
 
 local umask = module:get_option("umask") or "027";
 pposix.umask(umask);
@@ -112,7 +112,7 @@ end
 local syslog_opened;
 function syslog_sink_maker(config)
        if not syslog_opened then
-               pposix.syslog_open("prosody");
+               pposix.syslog_open("prosody", module:get_option_string("syslog_facility"));
                syslog_opened = true;
        end
        local syslog, format = pposix.syslog_log, string.format;