mirror of
https://git.alee14.me/shiftos-archive/ShiftOS_TheReturn.git
synced 2025-01-22 18:02:16 +00:00
chat_getall MUD command
This commit is contained in:
parent
f54f014941
commit
f5f4dcbdb5
1 changed files with 11 additions and 0 deletions
|
@ -102,6 +102,17 @@ namespace ShiftOS.Server
|
|||
|
||||
public delegate void empty();
|
||||
|
||||
[MudRequest("chat_getallchannels")]
|
||||
public static void GetAllChannels(string guid, object contents)
|
||||
{
|
||||
server.DispatchTo(new Guid(guid), new NetObject("chat_all", new ServerMessage
|
||||
{
|
||||
Name = "chat_all",
|
||||
GUID = "Server",
|
||||
Contents = (File.Exists("chats.json") == true) ? File.ReadAllText("chats.json") : "[]"
|
||||
}));
|
||||
}
|
||||
|
||||
[MudRequest("chat_send")]
|
||||
public static void ReceiveMessage(string guid, object contents)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue