equal
deleted
inserted
replaced
67 end |
67 end |
68 end |
68 end |
69 |
69 |
70 function module.command(arg) |
70 function module.command(arg) |
71 if not arg[1] or arg[1] == "--help" then |
71 if not arg[1] or arg[1] == "--help" then |
72 require"util.prosodyctl".show_usage([[mod_lastlog <user@host>]], [[Show when user last logged in or out]]); |
72 require"util.prosodyctl".show_usage([[mod_lastlog2 <user@host>]], [[Show when user last logged in or out]]); |
73 return 1; |
73 return 1; |
74 end |
74 end |
75 local user, host = jid.prepped_split(table.remove(arg, 1)); |
75 local user, host = jid.prepped_split(table.remove(arg, 1)); |
76 require"core.storagemanager".initialize_host(host); |
76 require"core.storagemanager".initialize_host(host); |
77 store = module:context(host):open_store(); |
77 store = module:context(host):open_store(); |