Changeset

4799:1537bf7f9618

Merge with Zash
author Matthew Wild <mwild1@gmail.com>
date Sun, 29 Apr 2012 02:44:09 +0100
parents 4797:e239668aa6d2 (diff) 4798:e8bd0a6f45e2 (current diff)
children 4800:7ce502f21270
files
diffstat 3 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/plugins/mod_posix.lua	Sun Apr 29 02:24:00 2012 +0200
+++ b/plugins/mod_posix.lua	Sun Apr 29 02:44:09 2012 +0100
@@ -112,7 +112,7 @@
 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;
--- a/plugins/mod_pubsub.lua	Sun Apr 29 02:24:00 2012 +0200
+++ b/plugins/mod_pubsub.lua	Sun Apr 29 02:44:09 2012 +0100
@@ -57,6 +57,7 @@
 	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 })
--- a/plugins/mod_version.lua	Sun Apr 29 02:24:00 2012 +0200
+++ b/plugins/mod_version.lua	Sun Apr 29 02:44:09 2012 +0100
@@ -21,7 +21,7 @@
 		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