aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2014-10-25 14:45:11 +0200
committerKim Alvefur <zash@zash.se>2014-10-25 14:45:11 +0200
commit9c15f1ec5f33f1e7974820e381c4bd7736d21e0c (patch)
tree2d5d7dc3985359674ba6ffb431b52e591fb863cf
parenta0d0ea03e1b4e101ce32676b08b94c6615b9f250 (diff)
downloadprosody-9c15f1ec5f33f1e7974820e381c4bd7736d21e0c.tar.gz
prosody-9c15f1ec5f33f1e7974820e381c4bd7736d21e0c.zip
mod_blocklist: Only log message about migrating from mod_privacy when there is data to migrate
-rw-r--r--plugins/mod_blocklist.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/mod_blocklist.lua b/plugins/mod_blocklist.lua
index 1f09ca13..45415790 100644
--- a/plugins/mod_blocklist.lua
+++ b/plugins/mod_blocklist.lua
@@ -43,7 +43,6 @@ end
-- Migrates from the old mod_privacy storage
local function migrate_privacy_list(username)
local migrated_data = { [false] = "not empty" };
- module:log("info", "Migrating blocklist from mod_privacy storage for user '%s'", username);
local legacy_data = module:open_store("privacy"):get(username);
if legacy_data and legacy_data.lists and legacy_data.default then
legacy_data = legacy_data.lists[legacy_data.default];
@@ -52,6 +51,7 @@ local function migrate_privacy_list(username)
return migrated_data;
end
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];