diff options
author | Matthew Wild <mwild1@gmail.com> | 2009-05-05 16:41:17 +0100 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2009-05-05 16:41:17 +0100 |
commit | fe72a49ae5a2187b69b75159a0a5adfc15c2c8bf (patch) | |
tree | 383f8492299cbf861436b4f3b002fcd155e04ad1 /util | |
parent | f2fd8fa91e4c8f9d92d9c3c1c503d07ff1f243d7 (diff) | |
parent | ceb73bd4358e9dd286cc5757112254606dda7d54 (diff) | |
download | prosody-fe72a49ae5a2187b69b75159a0a5adfc15c2c8bf.tar.gz prosody-fe72a49ae5a2187b69b75159a0a5adfc15c2c8bf.zip |
Merge with 0.4
Diffstat (limited to 'util')
-rw-r--r-- | util/prosodyctl.lua | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/util/prosodyctl.lua b/util/prosodyctl.lua index 4c6b6ea4..3b523a78 100644 --- a/util/prosodyctl.lua +++ b/util/prosodyctl.lua @@ -19,7 +19,10 @@ function adduser(params) return false, "invalid-hostname"; end - usermanager.create_user(user, password, host); + local ok = usermanager.create_user(user, password, host); + if not ok then + return false, "unable-to-save-data"; + end return true; end |