]> granicus.if.org Git - ejabberd/commitdiff
* src/mod_roster_odbc.erl: Bugfix
authorAlexey Shchepin <alexey@process-one.net>
Thu, 13 Oct 2005 01:29:21 +0000 (01:29 +0000)
committerAlexey Shchepin <alexey@process-one.net>
Thu, 13 Oct 2005 01:29:21 +0000 (01:29 +0000)
SVN Revision: 417

ChangeLog
src/ejabberd_auth_odbc.erl

index 68a6668932e97f5b4b2d91e51337f66030e2b335..2432292b3faf674eee3c4bf4c7a1f98017fba16e 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -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>
index a634691d39ecc79513c40bf160910fa376910882..0622b6f07bd9964ba7c2d0dfb9eec56e675314de 100644 (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;