Comparison

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
parent 3778:7209f481bcfe
child 4022:3ac31ddab7eb
comparison
equal deleted inserted replaced
3787:28deb30a5272 3788:14028430638b
185 end); 185 end);
186 186
187 187
188 local sm = require "core.storagemanager"; 188 local sm = require "core.storagemanager";
189 function module.command(arg) 189 function module.command(arg)
190 if #arg < 2 then 190 if #arg < 2 or arg[2] ~= "generate" then
191 print("usage: prosodyctl mod_easy_invite example.net register"); 191 print("usage: prosodyctl mod_easy_invite example.net generate");
192 return; 192 return;
193 end 193 end
194 194
195 local host = arg[1]; 195 local host = arg[1];
196 assert(hosts[host], "Host "..tostring(host).." does not exist"); 196 assert(hosts[host], "Host "..tostring(host).." does not exist");