Send the owner name, not the client name on SendDialog.

This modifies IClientAPI.SendDialog slightly.
Fixes Mantis #3661.
This commit is contained in:
Homer Horwitz
2009-05-16 16:01:25 +00:00
parent 29301e66c0
commit 99cf8e3f5a
8 changed files with 28 additions and 14 deletions

View File

@@ -2474,13 +2474,14 @@ namespace OpenSim.Region.ClientStack.LindenUDP
OutPacket(loadURL, ThrottleOutPacketType.Task);
}
public void SendDialog(string objectname, UUID objectID, UUID ownerID, string msg, UUID textureID, int ch, string[] buttonlabels)
public void SendDialog(string objectname, UUID objectID, string ownerFirstName, string ownerLastName, string msg, UUID textureID, int ch, string[] buttonlabels)
{
ScriptDialogPacket dialog = (ScriptDialogPacket)PacketPool.Instance.GetPacket(PacketType.ScriptDialog);
dialog.Data.ObjectID = objectID;
dialog.Data.ObjectName = Utils.StringToBytes(objectname);
dialog.Data.FirstName = Utils.StringToBytes(FirstName);
dialog.Data.LastName = Utils.StringToBytes(LastName);
// this is the username of the *owner*
dialog.Data.FirstName = Utils.StringToBytes(ownerFirstName);
dialog.Data.LastName = Utils.StringToBytes(ownerLastName);
dialog.Data.Message = Utils.StringToBytes(msg);
dialog.Data.ImageID = textureID;
dialog.Data.ChatChannel = ch;