diff --git a/ShiftOS.Server/ChatBackend.cs b/ShiftOS.Server/ChatBackend.cs index b7ee1e3..1c98a09 100644 --- a/ShiftOS.Server/ChatBackend.cs +++ b/ShiftOS.Server/ChatBackend.cs @@ -126,11 +126,11 @@ namespace ShiftOS.Server })); } - [MudRequest("chat_send", typeof(ChatMessage))] + [MudRequest("chat_send", typeof(Dictionary))] public static void ReceiveMessage(string guid, object contents) { - var msg = contents as ChatMessage; - MessageReceived?.Invoke(guid, msg); + var msg = contents as Dictionary; + MessageReceived?.Invoke(guid, new ChatMessage(msg["Username"], msg["SystemName"], msg["Message"], msg["Channel"])); } }