aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael VanOverbeek <[email protected]>2017-02-15 22:26:57 +0000
committerMichael VanOverbeek <[email protected]>2017-02-15 22:26:57 +0000
commit88194888fd8b654de583b52121f21ba32542e5c9 (patch)
treee516a7ebc7b66debe64cb71060994bdf7f83e1a0
parent18604c054acfe2d0137dbd9dd6a2c30a69c3fbdf (diff)
downloadshiftos_thereturn-88194888fd8b654de583b52121f21ba32542e5c9.tar.gz
shiftos_thereturn-88194888fd8b654de583b52121f21ba32542e5c9.tar.bz2
shiftos_thereturn-88194888fd8b654de583b52121f21ba32542e5c9.zip
fix chat.send
-rw-r--r--ShiftOS.Server/ChatBackend.cs6
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"]));
}
}