25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-11-20 16:15:59 +01:00

* src/ejabberd_sm.erl: Bugfix

SVN Revision: 162
This commit is contained in:
Alexey Shchepin 2003-10-28 14:00:45 +00:00
parent e5609f565a
commit 20dada9aca
2 changed files with 13 additions and 3 deletions

View File

@ -1,3 +1,7 @@
2003-10-28 Alexey Shchepin <alexey@sevcom.net>
* src/ejabberd_sm.erl: Bugfix
2003-10-27 Alexey Shchepin <alexey@sevcom.net>
* src/ejabberd_auth.erl: Minor change in check_password/4

View File

@ -264,9 +264,15 @@ do_route(From, To, Packet) ->
"message" ->
route_message(From, To, Packet);
"iq" ->
Err = jlib:make_error_reply(
Packet, ?ERR_RECIPIENT_UNAVAILABLE),
ejabberd_router:route(To, From, Err);
case xml:get_attr_s("type", Attrs) of
"error" -> ok;
"result" -> ok;
_ ->
Err =
jlib:make_error_reply(
Packet, ?ERR_RECIPIENT_UNAVAILABLE),
ejabberd_router:route(To, From, Err)
end;
_ ->
?DEBUG("packet droped~n", [])
end;