diff options
author | Jacek Antonelli | 2008-08-15 23:44:56 -0500 |
---|---|---|
committer | Jacek Antonelli | 2008-08-15 23:44:56 -0500 |
commit | c07901e29ed545bbb02e3bddf148fe1104b94e9f (patch) | |
tree | f1ada64ce834acd7d92a425efb96c4b86bcf16b1 /linden/indra/newview/llcallingcard.cpp | |
parent | Second Life viewer sources 1.15.0.2 (diff) | |
download | meta-impy-c07901e29ed545bbb02e3bddf148fe1104b94e9f.zip meta-impy-c07901e29ed545bbb02e3bddf148fe1104b94e9f.tar.gz meta-impy-c07901e29ed545bbb02e3bddf148fe1104b94e9f.tar.bz2 meta-impy-c07901e29ed545bbb02e3bddf148fe1104b94e9f.tar.xz |
Second Life viewer sources 1.15.1.3
Diffstat (limited to '')
-rw-r--r-- | linden/indra/newview/llcallingcard.cpp | 31 |
1 files changed, 30 insertions, 1 deletions
diff --git a/linden/indra/newview/llcallingcard.cpp b/linden/indra/newview/llcallingcard.cpp index 22e7f23..3e00f40 100644 --- a/linden/indra/newview/llcallingcard.cpp +++ b/linden/indra/newview/llcallingcard.cpp | |||
@@ -269,12 +269,28 @@ S32 LLAvatarTracker::addBuddyList(const LLAvatarTracker::buddy_map_t& buds) | |||
269 | for(buddy_map_t::const_iterator itr = buds.begin(); itr != buds.end(); ++itr) | 269 | for(buddy_map_t::const_iterator itr = buds.begin(); itr != buds.end(); ++itr) |
270 | { | 270 | { |
271 | agent_id = (*itr).first; | 271 | agent_id = (*itr).first; |
272 | if(mBuddyInfo.find(agent_id) == mBuddyInfo.end()) | 272 | buddy_map_t::const_iterator existing_buddy = mBuddyInfo.find(agent_id); |
273 | if(existing_buddy == mBuddyInfo.end()) | ||
273 | { | 274 | { |
274 | ++new_buddy_count; | 275 | ++new_buddy_count; |
275 | mBuddyInfo[agent_id] = (*itr).second; | 276 | mBuddyInfo[agent_id] = (*itr).second; |
276 | gCacheName->getName(agent_id, first, last); | 277 | gCacheName->getName(agent_id, first, last); |
277 | mModifyMask |= LLFriendObserver::ADD; | 278 | mModifyMask |= LLFriendObserver::ADD; |
279 | lldebugs << "Added buddy " << agent_id | ||
280 | << ", " << (mBuddyInfo[agent_id]->isOnline() ? "Online" : "Offline") | ||
281 | << ", TO: " << mBuddyInfo[agent_id]->getRightsGrantedTo() | ||
282 | << ", FROM: " << mBuddyInfo[agent_id]->getRightsGrantedFrom() | ||
283 | << llendl; | ||
284 | } | ||
285 | else | ||
286 | { | ||
287 | LLRelationship* e_r = (*existing_buddy).second; | ||
288 | LLRelationship* n_r = (*itr).second; | ||
289 | llwarns << "!! Add buddy for existing buddy: " << agent_id | ||
290 | << " [" << (e_r->isOnline() ? "Online" : "Offline") << "->" << (n_r->isOnline() ? "Online" : "Offline") | ||
291 | << ", " << e_r->getRightsGrantedTo() << "->" << n_r->getRightsGrantedTo() | ||
292 | << ", " << e_r->getRightsGrantedTo() << "->" << n_r->getRightsGrantedTo() | ||
293 | << "]" << llendl; | ||
278 | } | 294 | } |
279 | } | 295 | } |
280 | 296 | ||
@@ -325,6 +341,12 @@ void LLAvatarTracker::setBuddyOnline(const LLUUID& id, bool is_online) | |||
325 | { | 341 | { |
326 | info->online(is_online); | 342 | info->online(is_online); |
327 | mModifyMask |= LLFriendObserver::ONLINE; | 343 | mModifyMask |= LLFriendObserver::ONLINE; |
344 | lldebugs << "Set buddy " << id << (is_online ? " Online" : " Offline") << llendl; | ||
345 | } | ||
346 | else | ||
347 | { | ||
348 | llwarns << "!! No buddy info found for " << id | ||
349 | << ", setting to " << (is_online ? "Online" : "Offline") << llendl; | ||
328 | } | 350 | } |
329 | } | 351 | } |
330 | 352 | ||
@@ -598,6 +620,7 @@ void LLAvatarTracker::processNotify(LLMessageSystem* msg, bool online) | |||
598 | S32 count = msg->getNumberOfBlocksFast(_PREHASH_AgentBlock); | 620 | S32 count = msg->getNumberOfBlocksFast(_PREHASH_AgentBlock); |
599 | BOOL chat_notify = gSavedSettings.getBOOL("ChatOnlineNotification"); | 621 | BOOL chat_notify = gSavedSettings.getBOOL("ChatOnlineNotification"); |
600 | 622 | ||
623 | lldebugs << "Received " << count << " online notifications **** " << llendl; | ||
601 | if(count > 0) | 624 | if(count > 0) |
602 | { | 625 | { |
603 | LLUUID agent_id; | 626 | LLUUID agent_id; |
@@ -628,6 +651,12 @@ void LLAvatarTracker::processNotify(LLMessageSystem* msg, bool online) | |||
628 | } | 651 | } |
629 | } | 652 | } |
630 | } | 653 | } |
654 | else | ||
655 | { | ||
656 | llwarns << "Received online notification for unknown buddy: " | ||
657 | << agent_id << " is " << (online ? "ONLINE" : "OFFLINE") << llendl; | ||
658 | } | ||
659 | |||
631 | if(tracking_id == agent_id) | 660 | if(tracking_id == agent_id) |
632 | { | 661 | { |
633 | // we were tracking someone who went offline | 662 | // we were tracking someone who went offline |