It looks like there was a copy-paste error for mod_lastlog2. This patch should fix it:
# HG changeset patch
# User aidan@jmad.org
# Date 1708914004 28800
# Sun Feb 25 18:20:04 2024 -0800
# Node ID e1856bdcd75256c4120c5b9cc94a1b61804cedd8
# Parent 8b868c00e38eabbc762bdb7928feba65460c2d37
mod_lastlog2: Fix typo from original copy-paste
diff -r 8b868c00e38e -r e1856bdcd752 mod_lastlog2/README.markdown
--- a/mod_lastlog2/README.markdown Sun Feb 25 19:17:40 2024 -0500
+++ b/mod_lastlog2/README.markdown Sun Feb 25 18:20:04 2024 -0800
@@ -34,7 +34,7 @@
You can check a user's last activity by running:
- prosodyctl mod_lastlog username@example.com
+ prosodyctl mod_lastlog2 username@example.com
# Compatibility
diff -r 8b868c00e38e -r e1856bdcd752 mod_lastlog2/mod_lastlog2.lua
--- a/mod_lastlog2/mod_lastlog2.lua Sun Feb 25 19:17:40 2024 -0500
+++ b/mod_lastlog2/mod_lastlog2.lua Sun Feb 25 18:20:04 2024 -0800
@@ -69,7 +69,7 @@
function module.command(arg)
if not arg[1] or arg[1] == "--help" then
- require"util.prosodyctl".show_usage([[mod_lastlog <user@host>]], [[Show when user last logged in or out]]);
+ require"util.prosodyctl".show_usage([[mod_lastlog2 <user@host>]], [[Show when user last logged in or out]]);
return 1;
end
local user, host = jid.prepped_split(table.remove(arg, 1));
It looks like there was a copy-paste error for mod_lastlog2. This patch should fix it: # HG changeset patch # User aidan@jmad.org # Date 1708914004 28800 # Sun Feb 25 18:20:04 2024 -0800 # Node ID e1856bdcd75256c4120c5b9cc94a1b61804cedd8 # Parent 8b868c00e38eabbc762bdb7928feba65460c2d37 mod_lastlog2: Fix typo from original copy-paste diff -r 8b868c00e38e -r e1856bdcd752 mod_lastlog2/README.markdown --- a/mod_lastlog2/README.markdown Sun Feb 25 19:17:40 2024 -0500 +++ b/mod_lastlog2/README.markdown Sun Feb 25 18:20:04 2024 -0800 @@ -34,7 +34,7 @@ You can check a user's last activity by running: - prosodyctl mod_lastlog username@example.com + prosodyctl mod_lastlog2 username@example.com # Compatibility diff -r 8b868c00e38e -r e1856bdcd752 mod_lastlog2/mod_lastlog2.lua --- a/mod_lastlog2/mod_lastlog2.lua Sun Feb 25 19:17:40 2024 -0500 +++ b/mod_lastlog2/mod_lastlog2.lua Sun Feb 25 18:20:04 2024 -0800 @@ -69,7 +69,7 @@ function module.command(arg) if not arg[1] or arg[1] == "--help" then - require"util.prosodyctl".show_usage([[mod_lastlog <user@host>]], [[Show when user last logged in or out]]); + require"util.prosodyctl".show_usage([[mod_lastlog2 <user@host>]], [[Show when user last logged in or out]]); return 1; end local user, host = jid.prepped_split(table.remove(arg, 1));
Thanks for the patch! Rebased and pushed as https://hg.prosody.im/prosody-modules/rev/c5df6d53f17f
Changes