aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--plugins/mod_posix.lua2
-rw-r--r--plugins/mod_pubsub.lua1
-rw-r--r--plugins/mod_version.lua2
3 files changed, 3 insertions, 2 deletions
diff --git a/plugins/mod_posix.lua b/plugins/mod_posix.lua
index b388fb9d..1670ac95 100644
--- a/plugins/mod_posix.lua
+++ b/plugins/mod_posix.lua
@@ -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;
diff --git a/plugins/mod_pubsub.lua b/plugins/mod_pubsub.lua
index dd787d32..2cbd7184 100644
--- a/plugins/mod_pubsub.lua
+++ b/plugins/mod_pubsub.lua
@@ -57,6 +57,7 @@ function handlers.get_items(origin, stanza, items)
for _, entry in pairs(results) do
data:add_child(entry);
end
+ local reply;
if data then
reply = st.reply(stanza)
:tag("pubsub", { xmlns = xmlns_pubsub })
diff --git a/plugins/mod_version.lua b/plugins/mod_version.lua
index 52d8d290..d35103b6 100644
--- a/plugins/mod_version.lua
+++ b/plugins/mod_version.lua
@@ -21,7 +21,7 @@ if not module:get_option("hide_os_type") then
version = "Windows";
else
local os_version_command = module:get_option("os_version_command");
- local ok pposix = pcall(require, "pposix");
+ local ok, pposix = pcall(require, "util.pposix");
if not os_version_command and (ok and pposix and pposix.uname) then
version = pposix.uname().sysname;
end