Mercurial > prosody-modules
comparison mod_lastlog2/mod_lastlog2.lua @ 5876:c5df6d53f17f
mod_lastlog2: Fix typo from original copy-paste
| author | aidan@jmad.org |
|---|---|
| date | Sun, 25 Feb 2024 18:20:04 -0800 |
| parents | 5239ed05bd71 |
| children | 886c985ece61 |
comparison
equal
deleted
inserted
replaced
| 5875:61bee1be6db3 | 5876:c5df6d53f17f |
|---|---|
| 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(); |
