+2004-12-14 Alexey Shchepin <alexey@sevcom.net>
+
+ * src/ejabberd_sm.erl: Updated missed message passing from
+ previous patch
+
2004-12-13 Alexey Shchepin <alexey@sevcom.net>
* src/odbc/pg.sql: DB creation script for postgres
fun({_, R}) ->
if LFrom /=
{LUser, LServer, R} ->
- ejabberd_sm !
- {route,
- From,
- jlib:jid_replace_resource(To, R),
- Packet};
+ do_route(
+ From,
+ jlib:jid_replace_resource(To, R),
+ Packet);
true ->
ok
end
"broadcast" ->
lists:foreach(
fun(R) ->
- ejabberd_sm ! {route,
- From,
- jlib:jid_replace_resource(To, R),
- Packet}
+ do_route(From,
+ jlib:jid_replace_resource(To, R),
+ Packet)
end, get_user_resources(User));
_ ->
ok
ResIQ = Module:Function(From, To, IQ),
if
ResIQ /= ignore ->
- ejabberd_router ! {route,
- To,
- From,
- jlib:iq_to_xml(ResIQ)};
+ ejabberd_router:route(To, From,
+ jlib:iq_to_xml(ResIQ));
true ->
ok
end;
[] ->
Err = jlib:make_error_reply(
Packet, ?ERR_FEATURE_NOT_IMPLEMENTED),
- ejabberd_router ! {route, To, From, Err}
+ ejabberd_router:route(To, From, Err)
end;
reply ->
ok;