1
0
Fork 0
mirror of https://github.com/processone/ejabberd synced 2025-10-06 03:50:15 +02:00

* src/mod_last.erl: Added remove_user/1 function

* src/mod_configure.erl: Removing of user's stuff moved to
ejabberd_auth
* src/ejabberd_auth.erl: Likewise

SVN Revision: 167
This commit is contained in:
Alexey Shchepin 2003-11-01 21:06:50 +00:00
parent 8a52d7cad1
commit 36157e41c9
4 changed files with 30 additions and 11 deletions

View file

@ -671,11 +671,7 @@ set_form(["config", "remusers"], Lang, XData) ->
jlib:make_jid(Var, "", ""),
{xmlelement, "broadcast", [],
[{exit, "User removed"}]}},
catch ejabberd_auth:remove_user(Var),
catch mod_roster:remove_user(Var),
catch mod_offline:remove_user(Var),
catch mod_vcard:remove_user(Var),
catch mod_private:remove_user(Var);
catch ejabberd_auth:remove_user(Var);
_ ->
ok
end
@ -805,10 +801,6 @@ set_sm_form(User, [], Lang, XData) ->
{xmlelement, "broadcast", [],
[{exit, "User removed"}]}},
catch ejabberd_auth:remove_user(User),
catch mod_roster:remove_user(User),
catch mod_offline:remove_user(User),
catch mod_vcard:remove_user(User),
catch mod_private:remove_user(User),
{result, []};
_ ->
{error, ?ERR_BAD_REQUEST}