Software /
code /
prosody
Diff
util/prosodyctl.lua @ 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 |
parent | 1087:5e9475bec571 |
child | 1130:442c87de8e2d |
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