# HG changeset patch # User Matthew Wild # Date 1577707475 0 # Node ID 14028430638baa61be63a1aff63f7291813162a6 # Parent 28deb30a5272fffb05eb718bbb5b2f7f30b054d1 mod_easy_invite: Change command name to 'generate' (from 'register') diff -r 28deb30a5272 -r 14028430638b mod_easy_invite/README.markdown --- a/mod_easy_invite/README.markdown Mon Dec 30 12:04:17 2019 +0000 +++ b/mod_easy_invite/README.markdown Mon Dec 30 12:04:35 2019 +0000 @@ -52,7 +52,7 @@ Admins can create registration links using prosodyctl, e.g. ``` -prosodyctl mod_easy_invite example.com register +prosodyctl mod_easy_invite example.com generate ``` # Compatibility diff -r 28deb30a5272 -r 14028430638b mod_easy_invite/mod_easy_invite.lua --- a/mod_easy_invite/mod_easy_invite.lua Mon Dec 30 12:04:17 2019 +0000 +++ b/mod_easy_invite/mod_easy_invite.lua Mon Dec 30 12:04:35 2019 +0000 @@ -187,8 +187,8 @@ local sm = require "core.storagemanager"; function module.command(arg) - if #arg < 2 then - print("usage: prosodyctl mod_easy_invite example.net register"); + if #arg < 2 or arg[2] ~= "generate" then + print("usage: prosodyctl mod_easy_invite example.net generate"); return; end