Mercurial > prosody-modules
comparison mod_migrate/mod_migrate.lua @ 2816:cd9831b27746
mod_migrate: Remove unused locals
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Thu, 09 Nov 2017 14:24:16 +0100 |
parents | fd4a5ba12fa2 |
children | 611ac62c5b63 |
comparison
equal
deleted
inserted
replaced
2815:d48d4d9ccae7 | 2816:cd9831b27746 |
---|---|
1 -- mod_migrate | 1 -- mod_migrate |
2 | 2 |
3 local sm = require"core.storagemanager"; | 3 local sm = require"core.storagemanager"; |
4 local um = require"core.usermanager"; | 4 local um = require"core.usermanager"; |
5 local mm = require"core.modulemanager"; | |
6 | 5 |
7 function module.command(arg) | 6 function module.command(arg) |
8 local host, source_stores, migrate_to, user = unpack(arg); | 7 local host, source_stores, migrate_to = unpack(arg); |
9 if not migrate_to then | 8 if not migrate_to then |
10 return print("Usage: prosodyctl mod_migrate example.com <source-store>[-<store-type>] <target-driver> [users]*"); | 9 return print("Usage: prosodyctl mod_migrate example.com <source-store>[-<store-type>] <target-driver> [users]*"); |
11 end | 10 end |
12 if not prosody.hosts[host] then | 11 if not prosody.hosts[host] then |
13 return print(("The host %q is not know by Prosody."):format(host)); | 12 return print(("The host %q is not know by Prosody."):format(host)); |