Changeset - 909381c6588b
[Not reviewed]
0 1 0
HanzZ - 13 years ago 2012-04-08 14:01:46
hanzz.k@gmail.com
Do not send vcard with from=legacy_network_name
1 file changed with 1 insertions and 1 deletions:
0 comments (0 inline, 0 general)
src/vcardresponder.cpp
Show inline comments
 
@@ -92,25 +92,25 @@ bool VCardResponder::handleGetRequest(const Swift::JID& from, const Swift::JID&
 
	Swift::JID to_ = to;
 

	
 
	std::string name = to_.getUnescapedNode();
 
	if (name.empty()) {
 
		to_ = user->getJID();
 
	}
 

	
 
	name = Buddy::JIDToLegacyName(to_);
 

	
 
	LOG4CXX_INFO(logger, from.toBare().toString() << ": Requested VCard of " << name);
 

	
 
	m_queries[m_id].from = from;
 
	m_queries[m_id].to = to_;
 
	m_queries[m_id].to = to;
 
	m_queries[m_id].id = id; 
 
	m_queries[m_id].received = time(NULL);
 
	onVCardRequired(user, name, m_id++);
 
	return true;
 
}
 

	
 
bool VCardResponder::handleSetRequest(const Swift::JID& from, const Swift::JID& to, const std::string& id, boost::shared_ptr<Swift::VCard> payload) {
 
	if (!to.getNode().empty()) {
 
		LOG4CXX_WARN(logger, from.toBare().toString() << ": Tried to set VCard of somebody else");
 
		return false;
 
	}
 

	
0 comments (0 inline, 0 general)