* src/mod_roster_odbc.erl: Bugfix

SVN Revision: 417
This commit is contained in:
Alexey Shchepin 2005-10-13 01:29:21 +00:00
parent 66fec72242
commit b89eb4a52d
2 changed files with 5 additions and 2 deletions

View File

@ -1,5 +1,7 @@
2005-10-13 Alexey Shchepin <alexey@sevcom.net>
* src/ejabberd_auth_odbc.erl: Bugfix
* src/mod_roster_odbc.erl: Bugfix
2005-10-07 Alexey Shchepin <alexey@sevcom.net>

View File

@ -192,7 +192,8 @@ remove_user(User, Server) ->
catch ejabberd_odbc:sql_query(
jlib:nameprep(Server),
["delete from users where username='", Username ,"'"]),
ejabberd_hooks:run(remove_user, jlib:nameprep(Server), [User])
ejabberd_hooks:run(remove_user, jlib:nameprep(Server),
[User, Server])
end.
remove_user(User, Server, Password) ->
@ -212,7 +213,7 @@ remove_user(User, Server, Password) ->
"commit"]) of
{selected, ["password"], [{Password}]} ->
ejabberd_hooks:run(remove_user, jlib:nameprep(Server),
[User]),
[User, Server]),
ok;
{selected, ["password"], []} ->
not_exists;