* src/ejabberd_c2s.erl: Updated to work correctly with
mod_vcard_odbc SVN Revision: 419
This commit is contained in:
parent
a773fb0a25
commit
9e88ecc1d1
|
@ -1,3 +1,8 @@
|
||||||
|
2005-10-15 Alexey Shchepin <alexey@sevcom.net>
|
||||||
|
|
||||||
|
* src/ejabberd_c2s.erl: Updated to work correctly with
|
||||||
|
mod_vcard_odbc
|
||||||
|
|
||||||
2005-10-13 Alexey Shchepin <alexey@sevcom.net>
|
2005-10-13 Alexey Shchepin <alexey@sevcom.net>
|
||||||
|
|
||||||
* src/odbc/ejabberd_odbc.erl: Experimental support for pgsql
|
* src/odbc/ejabberd_odbc.erl: Experimental support for pgsql
|
||||||
|
|
|
@ -895,10 +895,16 @@ handle_info({route, From, To, Packet}, StateName, StateData) ->
|
||||||
IQ = jlib:iq_query_info(Packet),
|
IQ = jlib:iq_query_info(Packet),
|
||||||
case IQ of
|
case IQ of
|
||||||
#iq{xmlns = ?NS_VCARD} ->
|
#iq{xmlns = ?NS_VCARD} ->
|
||||||
ResIQ = mod_vcard:process_sm_iq(From, To, IQ),
|
Host = StateData#state.server,
|
||||||
ejabberd_router:route(To,
|
case ets:lookup(sm_iqtable, {?NS_VCARD, Host}) of
|
||||||
From,
|
[{_, Module, Function, Opts}] ->
|
||||||
jlib:iq_to_xml(ResIQ)),
|
gen_iq_handler:handle(Host, Module, Function, Opts,
|
||||||
|
From, To, IQ);
|
||||||
|
[] ->
|
||||||
|
Err = jlib:make_error_reply(
|
||||||
|
Packet, ?ERR_FEATURE_NOT_IMPLEMENTED),
|
||||||
|
ejabberd_router:route(To, From, Err)
|
||||||
|
end,
|
||||||
{false, Attrs, StateData};
|
{false, Attrs, StateData};
|
||||||
%-ifdef(PRIVACY_SUPPORT).
|
%-ifdef(PRIVACY_SUPPORT).
|
||||||
#iq{} ->
|
#iq{} ->
|
||||||
|
|
Loading…
Reference in New Issue