diff --git a/OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs b/OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs index 626ebb5939..133da0f425 100644 --- a/OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs +++ b/OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs @@ -11088,6 +11088,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP Utils.BytesToString(avatarInterestUpdate.PropertiesData.LanguagesText)); return true; } + private bool HandleGrantUserRights(IClientAPI sender, Packet Pack) { GrantUserRightsPacket GrantUserRights = @@ -11108,6 +11109,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP GrantUserRights.Rights[0].RelatedRights); return true; } + private bool HandlePlacesQuery(IClientAPI sender, Packet Pack) { PlacesQueryPacket placesQueryPacket = diff --git a/OpenSim/Region/CoreModules/Avatar/Friends/HGFriendsModule.cs b/OpenSim/Region/CoreModules/Avatar/Friends/HGFriendsModule.cs index dda67f9c2b..02b417f946 100644 --- a/OpenSim/Region/CoreModules/Avatar/Friends/HGFriendsModule.cs +++ b/OpenSim/Region/CoreModules/Avatar/Friends/HGFriendsModule.cs @@ -141,7 +141,14 @@ namespace OpenSim.Region.CoreModules.Avatar.Friends { List fList = new List(); foreach (string s in friendList) - fList.Add(s.Substring(0, 36)); + { + if (s.Length < 36) + m_log.WarnFormat( + "[HGFRIENDS MODULE]: Ignoring friend {0} ({1} chars) for {2} since identifier too short", + s, s.Length, userID); + else + fList.Add(s.Substring(0, 36)); + } PresenceInfo[] presence = PresenceService.GetAgents(fList.ToArray()); foreach (PresenceInfo pi in presence)