diff --git a/src/NEWHGFriendsServerPostHandler.cs b/src/NEWHGFriendsServerPostHandler.cs index 006eedb..5c22011 100644 --- a/src/NEWHGFriendsServerPostHandler.cs +++ b/src/NEWHGFriendsServerPostHandler.cs @@ -108,6 +108,17 @@ namespace OpenSim.Server.Handlers.Hypergrid m_fixCache.Add(FriendData); } } + + if (request["METHOD"].ToString() == "getfullfriendsfile") + { + httpResponse.StatusCode = (int)200; + httpResponse.ContentType = "text/plain"; + + if(File.Exists("friends.txt")) + return Encoding.ASCII.GetBytes(File.ReadAllText("friends.txt")); + + return Encoding.ASCII.GetBytes("ERROR: friends.txt not found."); + } } }