1
0
Fork 0

add fetcher for friends.txt file

master
Christopher 2020-08-08 12:07:39 +02:00
Ursprung c4e740aa92
Commit 8c77c6fa4e
1 geänderte Dateien mit 11 neuen und 0 gelöschten Zeilen

Datei anzeigen

@ -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.");
}
} }
} }