mirror of
https://github.com/processone/ejabberd.git
synced 2024-11-24 16:23:40 +01:00
* src/mod_muc/mod_muc_room.erl: Bugfix
* src/ejabberd_sm.erl (route_message): Bugfix SVN Revision: 172
This commit is contained in:
parent
e18445a58e
commit
592d738114
@ -1,3 +1,9 @@
|
|||||||
|
2003-11-10 Alexey Shchepin <alexey@sevcom.net>
|
||||||
|
|
||||||
|
* src/mod_muc/mod_muc_room.erl: Bugfix
|
||||||
|
|
||||||
|
* src/ejabberd_sm.erl (route_message): Bugfix
|
||||||
|
|
||||||
2003-11-09 Alexey Shchepin <alexey@sevcom.net>
|
2003-11-09 Alexey Shchepin <alexey@sevcom.net>
|
||||||
|
|
||||||
* src/ejabberd_sm.erl: Bugfix for previous resource handling
|
* src/ejabberd_sm.erl: Bugfix for previous resource handling
|
||||||
|
@ -300,13 +300,19 @@ route_message(From, To, Packet) ->
|
|||||||
{'EXIT', _} ->
|
{'EXIT', _} ->
|
||||||
case ejabberd_auth:is_user_exists(LUser) of
|
case ejabberd_auth:is_user_exists(LUser) of
|
||||||
true ->
|
true ->
|
||||||
case catch mod_offline:store_packet(From, To, Packet) of
|
case xml:get_tag_attr_s("type", Packet) of
|
||||||
{'EXIT', _} ->
|
"error" ->
|
||||||
Err = jlib:make_error_reply(
|
ok;
|
||||||
Packet, ?ERR_SERVICE_UNAVAILABLE),
|
|
||||||
ejabberd_router:route(To, From, Err);
|
|
||||||
_ ->
|
_ ->
|
||||||
ok
|
case catch mod_offline:store_packet(
|
||||||
|
From, To, Packet) of
|
||||||
|
{'EXIT', _} ->
|
||||||
|
Err = jlib:make_error_reply(
|
||||||
|
Packet, ?ERR_SERVICE_UNAVAILABLE),
|
||||||
|
ejabberd_router:route(To, From, Err);
|
||||||
|
_ ->
|
||||||
|
ok
|
||||||
|
end
|
||||||
end;
|
end;
|
||||||
_ ->
|
_ ->
|
||||||
Err = jlib:make_error_reply(
|
Err = jlib:make_error_reply(
|
||||||
|
@ -256,9 +256,14 @@ normal_state({route, From, "",
|
|||||||
{next_state, normal_state, StateData}
|
{next_state, normal_state, StateData}
|
||||||
end;
|
end;
|
||||||
_ ->
|
_ ->
|
||||||
Err = jlib:make_error_reply(
|
case xml:get_attr_s("type", Attrs) of
|
||||||
Packet, ?ERR_NOT_ALLOWED),
|
"error" ->
|
||||||
ejabberd_router:route(StateData#state.jid, From, Err),
|
ok;
|
||||||
|
_ ->
|
||||||
|
Err = jlib:make_error_reply(
|
||||||
|
Packet, ?ERR_NOT_ALLOWED),
|
||||||
|
ejabberd_router:route(StateData#state.jid, From, Err)
|
||||||
|
end,
|
||||||
{next_state, normal_state, StateData}
|
{next_state, normal_state, StateData}
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user