changeset 3788:14028430638b

mod_easy_invite: Change command name to 'generate' (from 'register')
author Matthew Wild <mwild1@gmail.com>
date Mon, 30 Dec 2019 12:04:35 +0000
parents 28deb30a5272
children e3b673df3906
files mod_easy_invite/README.markdown mod_easy_invite/mod_easy_invite.lua
diffstat 2 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- 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
--- 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