From 88194888fd8b654de583b52121f21ba32542e5c9 Mon Sep 17 00:00:00 2001 From: Michael VanOverbeek Date: Wed, 15 Feb 2017 22:26:57 +0000 Subject: [PATCH] fix chat.send --- ShiftOS.Server/ChatBackend.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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"])); } }