Mercurial > prosody-modules
comparison mod_migrate/mod_migrate.lua @ 6509:f61564e11d3b
various: Adjust for loop variables becoming constants in Lua 5.5
| author | Kim Alvefur <zash@zash.se> |
|---|---|
| date | Tue, 07 Apr 2026 14:30:31 +0200 |
| parents | a16b689525d7 |
| children |
comparison
equal
deleted
inserted
replaced
| 6508:3044e14fcaa0 | 6509:f61564e11d3b |
|---|---|
| 86 if not prosody.hosts[host] then | 86 if not prosody.hosts[host] then |
| 87 return print(("The host %q is not know by Prosody."):format(host)); | 87 return print(("The host %q is not know by Prosody."):format(host)); |
| 88 end | 88 end |
| 89 sm.initialize_host(host); | 89 sm.initialize_host(host); |
| 90 um.initialize_host(host); | 90 um.initialize_host(host); |
| 91 for source_store in source_stores:gmatch("[^,]+") do | 91 for source_store_with_type in source_stores:gmatch("[^,]+") do |
| 92 local source_store = source_store_with_type; | |
| 92 local store_type = source_store:match("%-(%a+)$"); | 93 local store_type = source_store:match("%-(%a+)$"); |
| 93 if store_type then | 94 if store_type then |
| 94 source_store = source_store:sub(1, -2-#store_type); | 95 source_store = source_store:sub(1, -2-#store_type); |
| 95 end | 96 end |
| 96 local migrate_users; | 97 local migrate_users; |
