From a7fcacf8f396acbca0b640a65acfbf5487d513e7 Mon Sep 17 00:00:00 2001 From: Jeff Ames Date: Tue, 9 Jun 2009 18:07:35 +0000 Subject: Formatting cleanup. Ignore some generated files. --- OpenSim/Region/ScriptEngine/Shared/CodeTools/Compiler.cs | 14 +++++++------- .../Shared/CodeTools/Tests/CSCodeGeneratorTest.cs | 6 +++--- 2 files changed, 10 insertions(+), 10 deletions(-) (limited to 'OpenSim/Region/ScriptEngine') diff --git a/OpenSim/Region/ScriptEngine/Shared/CodeTools/Compiler.cs b/OpenSim/Region/ScriptEngine/Shared/CodeTools/Compiler.cs index 911da5b..5c7ce43 100644 --- a/OpenSim/Region/ScriptEngine/Shared/CodeTools/Compiler.cs +++ b/OpenSim/Region/ScriptEngine/Shared/CodeTools/Compiler.cs @@ -342,13 +342,13 @@ namespace OpenSim.Region.ScriptEngine.Shared.CodeTools throw new Exception(errtext); } - if(m_scriptEngine.World.Permissions.CanCompileScript(ownerUUID, (int)l) == false) { - // Not allowed to compile to this language! - string errtext = String.Empty; - errtext += ownerUUID + " is not in list of allowed users for this scripting language. Script will not be executed!"; - throw new Exception(errtext); - } - + if (m_scriptEngine.World.Permissions.CanCompileScript(ownerUUID, (int)l) == false) { + // Not allowed to compile to this language! + string errtext = String.Empty; + errtext += ownerUUID + " is not in list of allowed users for this scripting language. Script will not be executed!"; + throw new Exception(errtext); + } + string compileScript = Script; if (l == enumCompileType.lsl) diff --git a/OpenSim/Region/ScriptEngine/Shared/CodeTools/Tests/CSCodeGeneratorTest.cs b/OpenSim/Region/ScriptEngine/Shared/CodeTools/Tests/CSCodeGeneratorTest.cs index 5dfbdbc..3ca7f7c 100644 --- a/OpenSim/Region/ScriptEngine/Shared/CodeTools/Tests/CSCodeGeneratorTest.cs +++ b/OpenSim/Region/ScriptEngine/Shared/CodeTools/Tests/CSCodeGeneratorTest.cs @@ -135,8 +135,8 @@ state another_state [Test] public void TestLoneIdent() { - // A lone ident should be removed completely as it's an error in C# - // (MONO at least). + // A lone ident should be removed completely as it's an error in C# + // (MONO at least). string input = @"default { touch_start(integer num_detected) @@ -150,7 +150,7 @@ state another_state "\n public void default_event_touch_start(LSL_Types.LSLInteger num_detected)" + "\n {" + "\n LSL_Types.LSLInteger x = new LSL_Types.LSLInteger(0);" + - "\n ;" + + "\n ;" + "\n }\n"; CSCodeGenerator cg = new CSCodeGenerator(); -- cgit v1.1