aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Environment/Modules/InstantMessageModule.cs
diff options
context:
space:
mode:
authorTeravus Ovares2008-02-29 05:46:24 +0000
committerTeravus Ovares2008-02-29 05:46:24 +0000
commite333eaf4b604453da9a8952356086d4a5a1fc4a8 (patch)
treea94c05af8b965298523249c708973937860d2161 /OpenSim/Region/Environment/Modules/InstantMessageModule.cs
parentFrom: Alan M Webb <awebb@vnet.ibm.com> (diff)
downloadopensim-SC_OLD-e333eaf4b604453da9a8952356086d4a5a1fc4a8.zip
opensim-SC_OLD-e333eaf4b604453da9a8952356086d4a5a1fc4a8.tar.gz
opensim-SC_OLD-e333eaf4b604453da9a8952356086d4a5a1fc4a8.tar.bz2
opensim-SC_OLD-e333eaf4b604453da9a8952356086d4a5a1fc4a8.tar.xz
* ODEPlugin
** Added more realistic calculations of mass for the rest of the supported prim shapes+holes+cuts+tapers. Previously they were the generic height * width * length. Spheres roll (Angular velocity) more realistically, etc.
Diffstat (limited to 'OpenSim/Region/Environment/Modules/InstantMessageModule.cs')
-rw-r--r--OpenSim/Region/Environment/Modules/InstantMessageModule.cs20
1 files changed, 16 insertions, 4 deletions
diff --git a/OpenSim/Region/Environment/Modules/InstantMessageModule.cs b/OpenSim/Region/Environment/Modules/InstantMessageModule.cs
index 8df2acb..70f3d99 100644
--- a/OpenSim/Region/Environment/Modules/InstantMessageModule.cs
+++ b/OpenSim/Region/Environment/Modules/InstantMessageModule.cs
@@ -26,27 +26,39 @@
26* 26*
27*/ 27*/
28 28
29using System.Collections;
29using System.Collections.Generic; 30using System.Collections.Generic;
30using libsecondlife; 31using libsecondlife;
31using Nini.Config; 32using Nini.Config;
33using Nwc.XmlRpc;
32using OpenSim.Framework; 34using OpenSim.Framework;
33using OpenSim.Framework.Console; 35using OpenSim.Framework.Console;
34using OpenSim.Region.Environment.Interfaces; 36using OpenSim.Region.Environment.Interfaces;
35using OpenSim.Region.Environment.Scenes; 37using OpenSim.Region.Environment.Scenes;
36 38
39
37namespace OpenSim.Region.Environment.Modules 40namespace OpenSim.Region.Environment.Modules
38{ 41{
39 public class InstantMessageModule : IRegionModule 42 public class InstantMessageModule : IRegionModule
40 { 43 {
41 private List<Scene> m_scenes = new List<Scene>(); 44 private List<Scene> m_scenes = new List<Scene>();
45 private Hashtable m_RegionInfoCache = new Hashtable();
42 46
43 public void Initialise(Scene scene, IConfigSource config) 47 public void Initialise(Scene scene, IConfigSource config)
44 { 48 {
45 if (!m_scenes.Contains(scene)) 49 lock (m_scenes)
46 { 50 {
47 m_scenes.Add(scene); 51 if (m_scenes.Count == 0)
48 scene.EventManager.OnNewClient += OnNewClient; 52 {
49 scene.EventManager.OnGridInstantMessageToIMModule += OnGridInstantMessage; 53 //scene.AddXmlRPCHandler("avatar_location_update", processPresenceUpdate);
54 }
55
56 if (!m_scenes.Contains(scene))
57 {
58 m_scenes.Add(scene);
59 scene.EventManager.OnNewClient += OnNewClient;
60 scene.EventManager.OnGridInstantMessageToIMModule += OnGridInstantMessage;
61 }
50 } 62 }
51 } 63 }
52 64