mirror of
https://github.com/opensim/opensim.git
synced 2026-08-08 10:15:33 +08:00
Fix script error messages not showing up in viewer 3 and associated viewers.
Viewer 3 will discard such a message if the chat message owner does not match the avatar. We were filling the ownerID with the primID, so this never matched, hence viewer 3 did not see any script error messages. This commit fills the ownerID in with the prim ownerID so the script owner will receive script error messages. This does not affect viewer 1 and associated viewers which continue to process script errors as normal.
This commit is contained in:
@@ -38,6 +38,18 @@ namespace OpenSim.Region.Framework.Scenes
|
||||
{
|
||||
public partial class Scene
|
||||
{
|
||||
/// <summary>
|
||||
/// Send chat to listeners.
|
||||
/// </summary>
|
||||
/// <param name='message'></param>
|
||||
/// <param name='type'>/param>
|
||||
/// <param name='channel'></param>
|
||||
/// <param name='fromPos'></param>
|
||||
/// <param name='fromName'></param>
|
||||
/// <param name='fromID'></param>
|
||||
/// <param name='targetID'></param>
|
||||
/// <param name='fromAgent'></param>
|
||||
/// <param name='broadcast'></param>
|
||||
protected void SimChat(byte[] message, ChatTypeEnum type, int channel, Vector3 fromPos, string fromName,
|
||||
UUID fromID, UUID targetID, bool fromAgent, bool broadcast)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user