diff mod_easy_invite/mod_easy_invite.lua @ 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 7209f481bcfe
children 3ac31ddab7eb
line wrap: on
line diff
--- 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