From: Badlop Date: Tue, 1 Dec 2009 19:59:59 +0000 (+0000) Subject: Don't handle internally an IQ vCard if destination is full JID (EJAB-1045) X-Git-Tag: v2.1.1~22 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=20d1011194dd2b5caa420f94f78c33b3f6d6d622;p=ejabberd Don't handle internally an IQ vCard if destination is full JID (EJAB-1045) SVN Revision: 2766 --- diff --git a/src/ejabberd_c2s.erl b/src/ejabberd_c2s.erl index 8ca5f5c48..87a83992f 100644 --- a/src/ejabberd_c2s.erl +++ b/src/ejabberd_c2s.erl @@ -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}] ->