diff options
author | Jeff Ames | 2008-07-06 14:02:22 +0000 |
---|---|---|
committer | Jeff Ames | 2008-07-06 14:02:22 +0000 |
commit | d470d30c09fde202f708a9c8af763f5d16e18bfb (patch) | |
tree | 6a86572d268dda911a5208bf5be1a1f2c19adc3c /OpenSim/Region/Environment/Modules/Scripting/EMailModules | |
parent | Remove scripts that don't really belong in OpenSim SVN. (diff) | |
download | opensim-SC-d470d30c09fde202f708a9c8af763f5d16e18bfb.zip opensim-SC-d470d30c09fde202f708a9c8af763f5d16e18bfb.tar.gz opensim-SC-d470d30c09fde202f708a9c8af763f5d16e18bfb.tar.bz2 opensim-SC-d470d30c09fde202f708a9c8af763f5d16e18bfb.tar.xz |
Copyright notices and formatting cleanup.
Diffstat (limited to 'OpenSim/Region/Environment/Modules/Scripting/EMailModules')
-rw-r--r-- | OpenSim/Region/Environment/Modules/Scripting/EMailModules/EmailModule.cs | 51 |
1 files changed, 39 insertions, 12 deletions
diff --git a/OpenSim/Region/Environment/Modules/Scripting/EMailModules/EmailModule.cs b/OpenSim/Region/Environment/Modules/Scripting/EMailModules/EmailModule.cs index 5d33b04..77b2d29 100644 --- a/OpenSim/Region/Environment/Modules/Scripting/EMailModules/EmailModule.cs +++ b/OpenSim/Region/Environment/Modules/Scripting/EMailModules/EmailModule.cs | |||
@@ -1,3 +1,30 @@ | |||
1 | /* | ||
2 | * Copyright (c) Contributors, http://opensimulator.org/ | ||
3 | * See CONTRIBUTORS.TXT for a full list of copyright holders. | ||
4 | * | ||
5 | * Redistribution and use in source and binary forms, with or without | ||
6 | * modification, are permitted provided that the following conditions are met: | ||
7 | * * Redistributions of source code must retain the above copyright | ||
8 | * notice, this list of conditions and the following disclaimer. | ||
9 | * * Redistributions in binary form must reproduce the above copyright | ||
10 | * notice, this list of conditions and the following disclaimer in the | ||
11 | * documentation and/or other materials provided with the distribution. | ||
12 | * * Neither the name of the OpenSim Project nor the | ||
13 | * names of its contributors may be used to endorse or promote products | ||
14 | * derived from this software without specific prior written permission. | ||
15 | * | ||
16 | * THIS SOFTWARE IS PROVIDED BY THE DEVELOPERS ``AS IS'' AND ANY | ||
17 | * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED | ||
18 | * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE | ||
19 | * DISCLAIMED. IN NO EVENT SHALL THE CONTRIBUTORS BE LIABLE FOR ANY | ||
20 | * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES | ||
21 | * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; | ||
22 | * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND | ||
23 | * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | ||
24 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS | ||
25 | * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | ||
26 | */ | ||
27 | |||
1 | using System; | 28 | using System; |
2 | using System.Reflection; | 29 | using System.Reflection; |
3 | using System.Collections.Generic; | 30 | using System.Collections.Generic; |
@@ -24,9 +51,9 @@ namespace OpenSim.Region.Environment.Modules.Scripting.EmailModules | |||
24 | 51 | ||
25 | // Scenes by Region Handle | 52 | // Scenes by Region Handle |
26 | private Dictionary<ulong, Scene> m_Scenes = | 53 | private Dictionary<ulong, Scene> m_Scenes = |
27 | new Dictionary<ulong, Scene>(); | 54 | new Dictionary<ulong, Scene>(); |
28 | 55 | ||
29 | private bool m_Enabled = false; | 56 | private bool m_Enabled = false; |
30 | 57 | ||
31 | public void Initialise(Scene scene, IConfigSource config) | 58 | public void Initialise(Scene scene, IConfigSource config) |
32 | { | 59 | { |
@@ -34,8 +61,8 @@ namespace OpenSim.Region.Environment.Modules.Scripting.EmailModules | |||
34 | 61 | ||
35 | IConfig startupConfig = m_Config.Configs["Startup"]; | 62 | IConfig startupConfig = m_Config.Configs["Startup"]; |
36 | 63 | ||
37 | m_Enabled = (startupConfig.GetString("emailmodule", | 64 | m_Enabled = (startupConfig.GetString("emailmodule", |
38 | "DefaultEmailModule") == "DefaultEmailModule"); | 65 | "DefaultEmailModule") == "DefaultEmailModule"); |
39 | 66 | ||
40 | // It's a go! | 67 | // It's a go! |
41 | if (m_Enabled) | 68 | if (m_Enabled) |
@@ -79,12 +106,12 @@ namespace OpenSim.Region.Environment.Modules.Scripting.EmailModules | |||
79 | } | 106 | } |
80 | 107 | ||
81 | public void SendEmail(LLUUID objectID, string address, string subject, string body) | 108 | public void SendEmail(LLUUID objectID, string address, string subject, string body) |
82 | { | 109 | { |
83 | } | 110 | } |
84 | 111 | ||
85 | public Email GetNextEmail(LLUUID objectID, string sender, string subject) | 112 | public Email GetNextEmail(LLUUID objectID, string sender, string subject) |
86 | { | 113 | { |
87 | return null; | 114 | return null; |
88 | } | 115 | } |
89 | } | 116 | } |
90 | } | 117 | } |