diff options
author | Matthew Wild <mwild1@gmail.com> | 2014-07-31 07:14:54 +0100 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2014-07-31 07:14:54 +0100 |
commit | 4fc1aee09c0a779e8cd98645c78f668d98519b50 (patch) | |
tree | 8f4e0289c3e75e44a5062bbb7bba8306789b91d6 /prosodyctl | |
parent | 2991d9e427ea17227ee52240929d1ba1f98444dd (diff) | |
parent | 1afe601e8f66518777876e943a33e02a69369806 (diff) | |
download | prosody-4fc1aee09c0a779e8cd98645c78f668d98519b50.tar.gz prosody-4fc1aee09c0a779e8cd98645c78f668d98519b50.zip |
Merge 0.10->trunk
Diffstat (limited to 'prosodyctl')
-rwxr-xr-x | prosodyctl | 6 |
1 files changed, 2 insertions, 4 deletions
@@ -268,13 +268,14 @@ local show_yesno = prosodyctl.show_yesno; local show_prompt = prosodyctl.show_prompt; local read_password = prosodyctl.read_password; +local jid_split = require "util.jid".prepped_split; + local prosodyctl_timeout = (config.get("*", "prosodyctl_timeout") or 5) * 2; ----------------------- local commands = {}; local command = arg[1]; function commands.adduser(arg) - local jid_split = require "util.jid".split; if not arg[1] or arg[1] == "--help" then show_usage([[adduser JID]], [[Create the specified user account in Prosody]]); return 1; @@ -314,7 +315,6 @@ function commands.adduser(arg) end function commands.passwd(arg) - local jid_split = require "util.jid".split; if not arg[1] or arg[1] == "--help" then show_usage([[passwd JID]], [[Set the password for the specified user account in Prosody]]); return 1; @@ -354,7 +354,6 @@ function commands.passwd(arg) end function commands.deluser(arg) - local jid_split = require "util.jid".split; if not arg[1] or arg[1] == "--help" then show_usage([[deluser JID]], [[Permanently remove the specified user account from Prosody]]); return 1; @@ -373,7 +372,6 @@ function commands.deluser(arg) if not hosts[host] then show_warning("The host '%s' is not listed in the configuration file (or is not enabled).", host) - show_warning("The user will not be able to log in until this is changed."); hosts[host] = make_host(host); end |