From 4868f1df732d6e6da3d02da146eedd6b74845e04 Mon Sep 17 00:00:00 2001 From: Latif Khalifa Date: Sat, 24 Oct 2009 08:57:03 +0000 Subject: [PATCH] LIBOMV-727 Added an overload in GridProxyLoader SayToUser git-svn-id: http://libopenmetaverse.googlecode.com/svn/libopenmetaverse/trunk@3170 52acb1d6-8a22-11de-b505-999d5b087335 --- Programs/GridProxy/GridProxyLoader.cs | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) 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;