Diff

plugins/mod_posix.lua @ 3540:bc139431830b

Monster whitespace commit (beware the whitespace monster).
author Waqas Hussain <waqas20@gmail.com>
date Sat, 16 Oct 2010 23:00:42 +0500
parent 3537:7bbb19804d82
child 3555:6938b6153890
line wrap: on
line diff
--- a/plugins/mod_posix.lua	Sat Oct 16 08:34:32 2010 +0500
+++ b/plugins/mod_posix.lua	Sat Oct 16 23:00:42 2010 +0500
@@ -111,7 +111,7 @@
 	end
 end
 
-local syslog_opened 
+local syslog_opened;
 function syslog_sink_maker(config)
 	if not syslog_opened then
 		pposix.syslog_open("prosody");
@@ -119,12 +119,12 @@
 	end
 	local syslog, format = pposix.syslog_log, string.format;
 	return function (name, level, message, ...)
-			if ... then
-				syslog(level, format(message, ...));
-			else
-				syslog(level, message);
-			end
-		end;
+		if ... then
+			syslog(level, format(message, ...));
+		else
+			syslog(level, message);
+		end
+	end;
 end
 require "core.loggingmanager".register_sink_type("syslog", syslog_sink_maker);