Software /
code /
prosody-modules
Comparison
mod_lastlog2/mod_lastlog2.lua @ 5942:abd1bbe5006e draft default tip
Merge
author | Trần H. Trung <xmpp:trần.h.trung@trung.fun> |
---|---|
date | Sun, 16 Feb 2025 16:09:03 +0700 |
parent | 5900:c5df6d53f17f |
comparison
equal
deleted
inserted
replaced
5856:75dee6127829 | 5942:abd1bbe5006e |
---|---|
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(); |