add fetcher for friends.txt file
parent
c4e740aa92
commit
8c77c6fa4e
|
@ -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.");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue