24
1
mirror of https://github.com/processone/ejabberd.git synced 2024-06-06 21:37:17 +02:00

* 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> 2005-10-13 Alexey Shchepin <alexey@sevcom.net>
* src/ejabberd_auth_odbc.erl: Bugfix
* src/mod_roster_odbc.erl: Bugfix * src/mod_roster_odbc.erl: Bugfix
2005-10-07 Alexey Shchepin <alexey@sevcom.net> 2005-10-07 Alexey Shchepin <alexey@sevcom.net>

View File

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