diff -r 0ae065453dc9 -r 7dbde05b48a9 mod_log_messages_sql/mod_log_messages_sql.lua --- a/mod_log_messages_sql/mod_log_messages_sql.lua Mon Mar 10 08:22:58 2014 +0000 +++ b/mod_log_messages_sql/mod_log_messages_sql.lua Tue Mar 11 18:44:01 2014 +0100 @@ -62,15 +62,15 @@ end 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"); assert(connect()); - + end function getsql(sql, ...) @@ -85,7 +85,7 @@ local ok, err = stmt:execute(...); if not ok and not test_connection() then error("connection failed"); end if not ok then return nil, err; end - + return stmt; end function setsql(sql, ...)