Software /
code /
prosody-modules
Changeset
1788:d2b82b90c413
mod_mam: Unindent 'else' block
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Wed, 26 Aug 2015 17:22:14 +0200 |
parents | 1787:663e5d923ef0 |
children | 1789:dbce8a7726ef |
files | mod_mam/mod_mam.lua |
diffstat | 1 files changed, 11 insertions(+), 11 deletions(-) [+] |
line wrap: on
line diff
--- a/mod_mam/mod_mam.lua Tue Aug 25 16:58:39 2015 +0200 +++ b/mod_mam/mod_mam.lua Wed Aug 26 17:22:14 2015 +0200 @@ -201,18 +201,18 @@ module:log("debug", "%s's rule for %s is %s", user, who, tostring(rule)); if rule ~= nil then return rule; - else -- Below could be done by a metatable - local default = prefs[false]; - module:log("debug", "%s's default rule is %s", user, tostring(default)); - if default == nil then - default = global_default_policy; - module:log("debug", "Using global default rule, %s", tostring(default)); - end - if default == "roster" then - return has_in_roster(user, who); - end - return default; end + -- Below could be done by a metatable + local default = prefs[false]; + module:log("debug", "%s's default rule is %s", user, tostring(default)); + if default == nil then + default = global_default_policy; + module:log("debug", "Using global default rule, %s", tostring(default)); + end + if default == "roster" then + return has_in_roster(user, who); + end + return default; end -- Handle messages