Diff

plugins/mod_storage_sql2.lua @ 5776:bd0ff8ae98a8

Remove all trailing whitespace
author Florian Zeitz <florob@babelmonkeys.de>
date Fri, 09 Aug 2013 17:48:21 +0200
parent 5765:d854c17a45fd
child 5847:6aaa7ad4463c
line wrap: on
line diff
--- a/plugins/mod_storage_sql2.lua	Fri Aug 09 16:03:48 2013 +0200
+++ b/plugins/mod_storage_sql2.lua	Fri Aug 09 17:48:21 2013 +0200
@@ -137,16 +137,16 @@
 
 do -- process options to get a db connection
 	params = params or { driver = "SQLite3" };
-	
+
 	if params.driver == "SQLite3" then
 		params.database = resolve_relative_path(prosody.paths.data or ".", params.database or "prosody.sqlite");
 	end
-	
+
 	assert(params.driver and params.database, "Both the SQL driver and the database need to be specified");
 
 	--local dburi = db2uri(params);
 	engine = mod_sql:create_engine(params);
-	
+
 	-- Encoding mess
 	set_encoding();
 
@@ -204,7 +204,7 @@
 end
 local function keyval_store_set(data)
 	engine:delete("DELETE FROM `prosody` WHERE `host`=? AND `user`=? AND `store`=?", host, user or "", store);
-	
+
 	if data and next(data) ~= nil then
 		local extradata = {};
 		for key, value in pairs(data) do