Add a mechanism for custom drop messages. Implement for kick.

This commit is contained in:
Paul Chote
2011-01-15 13:49:18 +13:00
parent d835c14988
commit 06612d0f68
6 changed files with 19 additions and 11 deletions

View File

@@ -310,10 +310,15 @@ namespace OpenRA.Server
public void SendChatTo(Connection conn, string text)
{
DispatchOrdersToClient(conn, 0, 0,
new ServerOrder("Chat", text).Serialize());
SendOrderTo(conn, "Chat", text);
}
public void SendOrderTo(Connection conn, string order, string data)
{
DispatchOrdersToClient(conn, 0, 0,
new ServerOrder(order, data).Serialize());
}
public void SendChat(Connection asConn, string text)
{
DispatchOrders(asConn, 0, new ServerOrder("Chat", text).Serialize());