aboutsummaryrefslogtreecommitdiffstats
path: root/util/prosodyctl.lua
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2009-05-05 16:41:17 +0100
committerMatthew Wild <mwild1@gmail.com>2009-05-05 16:41:17 +0100
commitfe72a49ae5a2187b69b75159a0a5adfc15c2c8bf (patch)
tree383f8492299cbf861436b4f3b002fcd155e04ad1 /util/prosodyctl.lua
parentf2fd8fa91e4c8f9d92d9c3c1c503d07ff1f243d7 (diff)
parentceb73bd4358e9dd286cc5757112254606dda7d54 (diff)
downloadprosody-fe72a49ae5a2187b69b75159a0a5adfc15c2c8bf.tar.gz
prosody-fe72a49ae5a2187b69b75159a0a5adfc15c2c8bf.zip
Merge with 0.4
Diffstat (limited to 'util/prosodyctl.lua')
-rw-r--r--util/prosodyctl.lua5
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