rendered paste bodyIndex: src/game/MiscHandler.cpp===================================================================--- src/game/MiscHandler.cpp (Revision 5147)+++ src/game/MiscHandler.cpp (Arbeitskopie)@@ -582,24 +582,26 @@ if (friendGuid && friendResult==FRIEND_NOT_FOUND) {- if( pFriend && pFriend->IsInWorld() && pFriend->IsVisibleGloballyFor(GetPlayer()))- {- friendResult = FRIEND_ADDED_ONLINE;- friendArea = pFriend->GetZoneId();- friendLevel = pFriend->getLevel();- friendClass = pFriend->getClass();- }- else- friendResult = FRIEND_ADDED_OFFLINE;+ if(!(pFriend->GetSession()->GetSecurity()>=2 && GetPlayer()->GetSession()->GetSecurity()<2)) {+ if( pFriend && pFriend->IsInWorld() && pFriend->IsVisibleGloballyFor(GetPlayer()))+ {+ friendResult = FRIEND_ADDED_ONLINE;+ friendArea = pFriend->GetZoneId();+ friendLevel = pFriend->getLevel();+ friendClass = pFriend->getClass();+ }+ else+ friendResult = FRIEND_ADDED_OFFLINE; - if(!GetPlayer()->AddToFriendList(friendGuid, friendName))- {- friendResult = FRIEND_LIST_FULL;- sLog.outDebug( "WORLD: %s's friend list is full.", GetPlayer()->GetName());+ if(!GetPlayer()->AddToFriendList(friendGuid, friendName))+ {+ friendResult = FRIEND_LIST_FULL;+ sLog.outDebug( "WORLD: %s's friend list is full.", GetPlayer()->GetName());+ }++ sLog.outDebug( "WORLD: %s Guid found '%u' area:%u Level:%u Class:%u. ",+ friendName.c_str(), GUID_LOPART(friendGuid), friendArea, friendLevel, friendClass); }-- sLog.outDebug( "WORLD: %s Guid found '%u' area:%u Level:%u Class:%u. ",- friendName.c_str(), GUID_LOPART(friendGuid), friendArea, friendLevel, friendClass); } else if(friendResult==FRIEND_ALREADY) {