Software /
code /
prosody
Changeset
1123:da7ff11a03ee
util.prosodyctl: Return success status of usermanager.create_user()
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Tue, 05 May 2009 16:37:17 +0100 |
parents | 1122:07b2b5942957 |
children | 1124:055cfdc96afa |
files | util/prosodyctl.lua |
diffstat | 1 files changed, 4 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/util/prosodyctl.lua Tue May 05 16:25:13 2009 +0100 +++ b/util/prosodyctl.lua Tue May 05 16:37:17 2009 +0100 @@ -19,7 +19,10 @@ 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