From kde-commits Wed Dec 11 23:44:48 2002 From: Till Gerken Date: Wed, 11 Dec 2002 23:44:48 +0000 To: kde-commits Subject: kdenonbeta/kopete/protocols/jabber X-MARC-Message: https://marc.info/?l=kde-commits&m=103965036423170 CVS commit by gerken: Signal online status for services correctly M +3 -11 jabbercontact.cpp 1.86 --- kdenonbeta/kopete/protocols/jabber/jabbercontact.cpp #1.85:1.86 @@ -576,11 +576,8 @@ JabberResource *JabberContact::bestResou void JabberContact::slotResourceAvailable(const Jabber::Jid &jid, const Jabber::Resource &resource) { - QString theirJID = QString("%1@%2").arg(jid.user(), 1).arg(jid.host(), 2); - // safety check: don't process resources of other users - if (theirJID != userId()) - return; - - kdDebug() << "[JabberContact] Adding new resource '" << resource.name() << "' for " << userId() << endl; + kdDebug() << "[JabberContact] Adding new resource '" << resource.name() << "' for " + << userId() << ", name [" << resource.name() << "], priority " + << resource.priority() << ", status [" << resource.status().status() << endl; /* @@ -637,9 +634,4 @@ void JabberContact::slotResourceUnavaila { JabberResource *tmpResource; - QString theirJID = QString("%1@%2").arg(jid.user(), 1).arg(jid.host(), 2); - - // safety check: don't process resources of other users - if (theirJID != userId()) - return; kdDebug() << "[JabberContact] Removing resource '" << jid.resource() << "' for " << userId() << endl;