Software /
code /
prosody-modules
Diff
mod_mam_sql/mod_mam_sql.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 | 1207:c6b8ae5a8369 |
child | 1388:6e1facedcb74 |
line wrap: on
line diff
--- a/mod_mam_sql/mod_mam_sql.lua Mon Mar 10 08:22:58 2014 +0000 +++ b/mod_mam_sql/mod_mam_sql.lua Tue Mar 11 18:44:01 2014 +0100 @@ -99,18 +99,18 @@ 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"); dburi = db2uri(params); connection = connections[dburi]; - + assert(connect()); - + end function getsql(sql, ...) @@ -135,7 +135,7 @@ return nil, "connection failed"; end if not ok then return nil, err; end - + return stmt; end function setsql(sql, ...) @@ -401,7 +401,7 @@ sql.rollback(); end --[[ This was dropped from the spec - if ok then + if ok then stanza:tag("archived", { xmlns = xmlns_mam, by = host, id = id }):up(); end --]]