util/prosodyctl.lua
changeset 5102 ae8a993b598d
parent 5023 dcc8e789df36
child 5379 27de7cc94111
--- a/util/prosodyctl.lua	Sat Aug 25 01:32:26 2012 +0200
+++ b/util/prosodyctl.lua	Sat Aug 25 01:33:01 2012 +0200
@@ -176,9 +176,9 @@
 	if not _M.user_exists(params) then
 		return false, "no-such-user";
 	end
-	params.password = nil;
+	local user, host = nodeprep(params.user), nameprep(params.host);
 	
-	return _M.adduser(params);
+	return usermanager.delete_user(user, host);
 end
 
 function getpid()