Mercurial > prosody-modules
diff 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 |
line wrap: on
line diff
--- a/mod_migrate/mod_migrate.lua Tue Apr 07 06:51:05 2026 +0200 +++ b/mod_migrate/mod_migrate.lua Tue Apr 07 14:30:31 2026 +0200 @@ -88,7 +88,8 @@ end sm.initialize_host(host); um.initialize_host(host); - for source_store in source_stores:gmatch("[^,]+") do + for source_store_with_type in source_stores:gmatch("[^,]+") do + local source_store = source_store_with_type; local store_type = source_store:match("%-(%a+)$"); if store_type then source_store = source_store:sub(1, -2-#store_type);
