diff --git a/Programs/GridProxy/GridProxyLoader.cs b/Programs/GridProxy/GridProxyLoader.cs index 0cf82a26..c303559f 100644 --- a/Programs/GridProxy/GridProxyLoader.cs +++ b/Programs/GridProxy/GridProxyLoader.cs @@ -212,10 +212,21 @@ namespace GridProxy /// /// A string containing the message to send public void SayToUser(string message) + { + SayToUser("GridProxy", message); + } + + + /// + /// Send a message to the viewer + /// + /// A string containing text indicating the origin of the message + /// A string containing the message to send + public void SayToUser(string fromName, string message) { ChatFromSimulatorPacket packet = new ChatFromSimulatorPacket(); - packet.ChatData.FromName = Utils.StringToBytes("GridProxy"); packet.ChatData.SourceID = UUID.Random(); + packet.ChatData.FromName = Utils.StringToBytes(fromName); packet.ChatData.OwnerID = agentID; packet.ChatData.SourceType = (byte)2; packet.ChatData.ChatType = (byte)1;