Do no add buddies twice in gateway mode

This commit is contained in:
HanzZ 2011-09-09 14:22:34 +02:00
parent 4c885cc947
commit 0bf2d89a7f

View file

@ -212,7 +212,7 @@ void RosterManager::handleRemoteRosterResponse(boost::shared_ptr<Swift::RosterPa
BOOST_FOREACH(const Swift::RosterItemPayload &item, payload->getItems()) {
std::string legacyName = Buddy::JIDToLegacyName(item.getJID());
if (m_buddies.find(legacyName) == m_buddies.end()) {
if (m_buddies.find(legacyName) != m_buddies.end()) {
continue;
}