diff options
| author | Michael VanOverbeek <[email protected]> | 2017-02-15 22:26:57 +0000 |
|---|---|---|
| committer | Michael VanOverbeek <[email protected]> | 2017-02-15 22:26:57 +0000 |
| commit | 88194888fd8b654de583b52121f21ba32542e5c9 (patch) | |
| tree | e516a7ebc7b66debe64cb71060994bdf7f83e1a0 /ShiftOS.Server/ChatBackend.cs | |
| parent | 18604c054acfe2d0137dbd9dd6a2c30a69c3fbdf (diff) | |
| download | shiftos_thereturn-88194888fd8b654de583b52121f21ba32542e5c9.tar.gz shiftos_thereturn-88194888fd8b654de583b52121f21ba32542e5c9.tar.bz2 shiftos_thereturn-88194888fd8b654de583b52121f21ba32542e5c9.zip | |
fix chat.send
Diffstat (limited to 'ShiftOS.Server/ChatBackend.cs')
| -rw-r--r-- | ShiftOS.Server/ChatBackend.cs | 6 |
1 files 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<string, string>))] public static void ReceiveMessage(string guid, object contents) { - var msg = contents as ChatMessage; - MessageReceived?.Invoke(guid, msg); + var msg = contents as Dictionary<string, string>; + MessageReceived?.Invoke(guid, new ChatMessage(msg["Username"], msg["SystemName"], msg["Message"], msg["Channel"])); } } |
