mirror of
https://git.alee14.me/shiftos-archive/ShiftOS_TheReturn.git
synced 2025-01-22 18:02:16 +00:00
fix chat.send
This commit is contained in:
parent
18604c054a
commit
88194888fd
1 changed files with 3 additions and 3 deletions
|
@ -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"]));
|
||||
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue