Software /
code /
prosody-modules
Diff
mod_auth_phpbb3/mod_auth_phpbb3.lua @ 1343:7dbde05b48a9
all the things: Remove trailing whitespace
author | Florian Zeitz <florob@babelmonkeys.de> |
---|---|
date | Tue, 11 Mar 2014 18:44:01 +0100 |
parent | 814:881ec9919144 |
child | 2168:28d99ffa3c06 |
line wrap: on
line diff
--- a/mod_auth_phpbb3/mod_auth_phpbb3.lua Mon Mar 10 08:22:58 2014 +0000 +++ b/mod_auth_phpbb3/mod_auth_phpbb3.lua Tue Mar 11 18:44:01 2014 +0100 @@ -47,13 +47,13 @@ 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"); - + assert(connect()); end @@ -70,7 +70,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 local function setsql(sql, ...)