# HG changeset patch # User Kim Alvefur # Date 1480955102 -3600 # Node ID 7fd26815fcf6ffd45edf499dc66f2e26f00dae47 # Parent 752697d68fdad45271c8e859e224aaa6f0e564c9 mod_blocklist: Remove one indentation level diff -r 752697d68fda -r 7fd26815fcf6 plugins/mod_blocklist.lua --- a/plugins/mod_blocklist.lua Mon Dec 05 17:22:12 2016 +0100 +++ b/plugins/mod_blocklist.lua Mon Dec 05 17:25:02 2016 +0100 @@ -61,18 +61,16 @@ local migrated_data = { [false] = { created = os.time(); migrated = "privacy" }}; - if legacy_data then - module:log("info", "Migrating blocklist from mod_privacy storage for user '%s'", username); - local item, jid; - for i = 1, #legacy_data do - item = legacy_data[i]; - if item.type == "jid" and item.action == "deny" then - jid = jid_prep(item.value); - if not jid then - module:log("warn", "Invalid JID in privacy store for user '%s' not migrated: %s", username, tostring(item.value)); - else - migrated_data[jid] = true; - end + module:log("info", "Migrating blocklist from mod_privacy storage for user '%s'", username); + local item, jid; + for i = 1, #legacy_data do + item = legacy_data[i]; + if item.type == "jid" and item.action == "deny" then + jid = jid_prep(item.value); + if not jid then + module:log("warn", "Invalid JID in privacy store for user '%s' not migrated: %s", username, tostring(item.value)); + else + migrated_data[jid] = true; end end end