mirror of
https://github.com/processone/ejabberd.git
synced 2024-11-24 16:23:40 +01:00
* src/ejabberd_s2s.erl: Don't bounce packets with "error" and
"result" type SVN Revision: 747
This commit is contained in:
parent
3d7090f62c
commit
77282b0e1a
@ -1,5 +1,8 @@
|
|||||||
2007-03-18 Alexey Shchepin <alexey@sevcom.net>
|
2007-03-18 Alexey Shchepin <alexey@sevcom.net>
|
||||||
|
|
||||||
|
* src/ejabberd_s2s.erl: Don't bounce packets with "error" and
|
||||||
|
"result" type
|
||||||
|
|
||||||
* src/ejabberd_s2s.erl: Fixed spelling
|
* src/ejabberd_s2s.erl: Fixed spelling
|
||||||
|
|
||||||
* src/ejabberd_s2s.erl: Don't start s2s process for existing
|
* src/ejabberd_s2s.erl: Don't start s2s process for existing
|
||||||
|
@ -210,9 +210,14 @@ do_route(From, To, Packet) ->
|
|||||||
send_element(Pid, {xmlelement, Name, NewAttrs, Els}),
|
send_element(Pid, {xmlelement, Name, NewAttrs, Els}),
|
||||||
ok;
|
ok;
|
||||||
{aborted, Reason} ->
|
{aborted, Reason} ->
|
||||||
Err = jlib:make_error_reply(
|
case xml:get_tag_attr_s("type", Packet) of
|
||||||
Packet, ?ERR_SERVICE_UNAVAILABLE),
|
"error" -> ok;
|
||||||
ejabberd_router:route(To, From, Err),
|
"result" -> ok;
|
||||||
|
_ ->
|
||||||
|
Err = jlib:make_error_reply(
|
||||||
|
Packet, ?ERR_SERVICE_UNAVAILABLE),
|
||||||
|
ejabberd_router:route(To, From, Err)
|
||||||
|
end,
|
||||||
false
|
false
|
||||||
end.
|
end.
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user