# HG changeset patch # User Waqas Hussain # Date 1292114328 -18000 # Node ID 1a58bbe19c60c9c742b6608f9950cb714f3fa387 # Parent ab8d1c90527c5f5ee77a286f1ba63880ea5bd81c mod_storage_sql: Default value for option sql = { driver = "SQLite3", database = "prosody.sqlite" }. diff -r ab8d1c90527c -r 1a58bbe19c60 plugins/mod_storage_sql.lua --- a/plugins/mod_storage_sql.lua Sun Dec 12 05:38:08 2010 +0500 +++ b/plugins/mod_storage_sql.lua Sun Dec 12 05:38:48 2010 +0500 @@ -33,7 +33,7 @@ do -- process options to get a db connection local DBI = require "DBI"; - local params = module:get_option("sql"); + local params = module:get_option("sql") or { driver = "SQLite3", database = "prosody.sqlite" }; assert(params and params.driver and params.database, "invalid params"); prosody.unlock_globals();