From 638fe7a7b5530320c63f83d50e80e2a17a308783 Mon Sep 17 00:00:00 2001 From: Jeff Ames Date: Wed, 5 Nov 2008 15:15:41 +0000 Subject: Update svn properties, minor formatting cleanup. --- OpenSim/Data/MSSQL/Resources/005_UserStore.sql | 10 +++---- .../Shared/Api/Implementation/OSSL_Api.cs | 34 +++++++++------------- 2 files changed, 19 insertions(+), 25 deletions(-) (limited to 'OpenSim') diff --git a/OpenSim/Data/MSSQL/Resources/005_UserStore.sql b/OpenSim/Data/MSSQL/Resources/005_UserStore.sql index 80eb94f..1b6ab8f 100644 --- a/OpenSim/Data/MSSQL/Resources/005_UserStore.sql +++ b/OpenSim/Data/MSSQL/Resources/005_UserStore.sql @@ -1,5 +1,5 @@ -BEGIN TRANSACTION - - ALTER TABLE users add email varchar(250); - -COMMIT +BEGIN TRANSACTION + + ALTER TABLE users add email varchar(250); + +COMMIT diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs index ead88d5..8a967ac 100644 --- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs +++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs @@ -945,25 +945,19 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api } // send a message to to object identified by the given UUID, a script in the object must implement the dataserver function - // the dataserver function is passed the ID of the calling function and a string message - public void osMessageObject(LSL_Key objectUUID,string message) - { - CheckThreatLevel(ThreatLevel.Low,"osMessageObject"); - m_host.AddScriptLPS(1); - - - object[] resobj = new object[] { new LSL_Types.LSLString(m_host.UUID.ToString()),new LSL_Types.LSLString(message) }; - - SceneObjectPart sceneOP = World.GetSceneObjectPart(new UUID(objectUUID)); - - m_ScriptEngine.PostObjectEvent( - sceneOP.LocalId, new EventParams( - "dataserver", resobj, - new DetectParams[0])); - - } - + // the dataserver function is passed the ID of the calling function and a string message + public void osMessageObject(LSL_Key objectUUID, string message) + { + CheckThreatLevel(ThreatLevel.Low, "osMessageObject"); + m_host.AddScriptLPS(1); + + object[] resobj = new object[] { new LSL_Types.LSLString(m_host.UUID.ToString()), new LSL_Types.LSLString(message) }; + + SceneObjectPart sceneOP = World.GetSceneObjectPart(new UUID(objectUUID)); + + m_ScriptEngine.PostObjectEvent( + sceneOP.LocalId, new EventParams( + "dataserver", resobj, new DetectParams[0])); + } } - - } -- cgit v1.1