add fetcher for friends.txt file

master
Christopher 2020-08-08 12:07:39 +02:00
parent c4e740aa92
commit 8c77c6fa4e
1 changed files with 11 additions and 0 deletions

View File

@ -108,6 +108,17 @@ namespace OpenSim.Server.Handlers.Hypergrid
m_fixCache.Add(FriendData); 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.");
}
} }
} }