25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-12-22 17:28:25 +01:00

Don't handle internally an IQ vCard if destination is full JID (EJAB-1045)

SVN Revision: 2766
This commit is contained in:
Badlop 2009-12-01 19:59:59 +00:00
parent 3df5277728
commit 20d1011194

View File

@ -1220,7 +1220,7 @@ handle_info({route, From, To, Packet}, StateName, StateData) ->
"iq" ->
IQ = jlib:iq_query_info(Packet),
case IQ of
#iq{xmlns = ?NS_VCARD} ->
#iq{xmlns = ?NS_VCARD} when (To#jid.luser == "") or (To#jid.lresource == "") ->
Host = StateData#state.server,
case ets:lookup(sm_iqtable, {?NS_VCARD, Host}) of
[{_, Module, Function, Opts}] ->