aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Environment/Modules
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Region/Environment/Modules')
-rw-r--r--OpenSim/Region/Environment/Modules/Avatar/Chat/ChatModule.cs16
-rw-r--r--OpenSim/Region/Environment/Modules/Avatar/Chat/IRCBridgeModule.cs16
-rw-r--r--OpenSim/Region/Environment/Modules/Avatar/Voice/AsterixVoice/AsteriskVoiceModule.cs4
-rw-r--r--OpenSim/Region/Environment/Modules/Avatar/Voice/SIPVoice/SIPVoiceModule.cs4
-rw-r--r--OpenSim/Region/Environment/Modules/World/Archiver/ArchiverModule.cs40
-rw-r--r--OpenSim/Region/Environment/Modules/World/Archiver/IRegionArchiver.cs4
-rw-r--r--OpenSim/Region/Environment/Modules/World/Land/LandObject.cs6
7 files changed, 45 insertions, 45 deletions
diff --git a/OpenSim/Region/Environment/Modules/Avatar/Chat/ChatModule.cs b/OpenSim/Region/Environment/Modules/Avatar/Chat/ChatModule.cs
index 8216222..9730b02 100644
--- a/OpenSim/Region/Environment/Modules/Avatar/Chat/ChatModule.cs
+++ b/OpenSim/Region/Environment/Modules/Avatar/Chat/ChatModule.cs
@@ -43,7 +43,7 @@ namespace OpenSim.Region.Environment.Modules.Avatar.Chat
43{ 43{
44 public class ChatModule : IRegionModule, ISimChat 44 public class ChatModule : IRegionModule, ISimChat
45 { 45 {
46 private static readonly ILog m_log = 46 private static readonly ILog m_log =
47 LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); 47 LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType);
48 48
49 private const int DEBUG_CHANNEL = 2147483647; 49 private const int DEBUG_CHANNEL = 2147483647;
@@ -115,7 +115,7 @@ namespace OpenSim.Region.Environment.Modules.Avatar.Chat
115 115
116 // Filled in since it's easier than rewriting right now. 116 // Filled in since it's easier than rewriting right now.
117 LLVector3 fromPos = e.Position; 117 LLVector3 fromPos = e.Position;
118 LLVector3 regionPos = new LLVector3(scene.RegionInfo.RegionLocX * Constants.RegionSize, 118 LLVector3 regionPos = new LLVector3(scene.RegionInfo.RegionLocX * Constants.RegionSize,
119 scene.RegionInfo.RegionLocY * Constants.RegionSize, 0); 119 scene.RegionInfo.RegionLocY * Constants.RegionSize, 0);
120 120
121 string fromName = e.From; 121 string fromName = e.From;
@@ -130,7 +130,7 @@ namespace OpenSim.Region.Environment.Modules.Avatar.Chat
130 if (avatar != null) 130 if (avatar != null)
131 { 131 {
132 fromPos = avatar.AbsolutePosition; 132 fromPos = avatar.AbsolutePosition;
133 regionPos = new LLVector3(scene.RegionInfo.RegionLocX * Constants.RegionSize, 133 regionPos = new LLVector3(scene.RegionInfo.RegionLocX * Constants.RegionSize,
134 scene.RegionInfo.RegionLocY * Constants.RegionSize, 0); 134 scene.RegionInfo.RegionLocY * Constants.RegionSize, 0);
135 fromName = avatar.Firstname + " " + avatar.Lastname; 135 fromName = avatar.Firstname + " " + avatar.Lastname;
136 fromAgentID = e.Sender.AgentId; 136 fromAgentID = e.Sender.AgentId;
@@ -151,13 +151,13 @@ namespace OpenSim.Region.Environment.Modules.Avatar.Chat
151 if (e.Channel == DEBUG_CHANNEL) 151 if (e.Channel == DEBUG_CHANNEL)
152 { 152 {
153 TrySendChatMessage(presence, fromPos, regionPos, 153 TrySendChatMessage(presence, fromPos, regionPos,
154 fromAgentID, fromName, e.Type, 154 fromAgentID, fromName, e.Type,
155 message, ChatSourceType.Object); 155 message, ChatSourceType.Object);
156 } 156 }
157 else 157 else
158 { 158 {
159 TrySendChatMessage(presence, fromPos, regionPos, 159 TrySendChatMessage(presence, fromPos, regionPos,
160 fromAgentID, fromName, e.Type, 160 fromAgentID, fromName, e.Type,
161 message, ChatSourceType.Agent); 161 message, ChatSourceType.Agent);
162 } 162 }
163 }); 163 });
@@ -180,7 +180,7 @@ namespace OpenSim.Region.Environment.Modules.Avatar.Chat
180 } 180 }
181 181
182 private void TrySendChatMessage(ScenePresence presence, LLVector3 fromPos, LLVector3 regionPos, 182 private void TrySendChatMessage(ScenePresence presence, LLVector3 fromPos, LLVector3 regionPos,
183 LLUUID fromAgentID, string fromName, ChatTypeEnum type, 183 LLUUID fromAgentID, string fromName, ChatTypeEnum type,
184 string message, ChatSourceType src) 184 string message, ChatSourceType src)
185 { 185 {
186 if (!presence.IsChildAgent) 186 if (!presence.IsChildAgent)
@@ -188,7 +188,7 @@ namespace OpenSim.Region.Environment.Modules.Avatar.Chat
188 LLVector3 fromRegionPos = fromPos + regionPos; 188 LLVector3 fromRegionPos = fromPos + regionPos;
189 LLVector3 toRegionPos = presence.AbsolutePosition + regionPos; 189 LLVector3 toRegionPos = presence.AbsolutePosition + regionPos;
190 int dis = Math.Abs((int) Util.GetDistanceTo(toRegionPos, fromRegionPos)); 190 int dis = Math.Abs((int) Util.GetDistanceTo(toRegionPos, fromRegionPos));
191 191
192 if (type == ChatTypeEnum.Whisper && dis > m_whisperdistance || 192 if (type == ChatTypeEnum.Whisper && dis > m_whisperdistance ||
193 type == ChatTypeEnum.Say && dis > m_saydistance || 193 type == ChatTypeEnum.Say && dis > m_saydistance ||
194 type == ChatTypeEnum.Shout && dis > m_shoutdistance) 194 type == ChatTypeEnum.Shout && dis > m_shoutdistance)
@@ -197,7 +197,7 @@ namespace OpenSim.Region.Environment.Modules.Avatar.Chat
197 } 197 }
198 198
199 // TODO: should change so the message is sent through the avatar rather than direct to the ClientView 199 // TODO: should change so the message is sent through the avatar rather than direct to the ClientView
200 presence.ControllingClient.SendChatMessage(message, (byte) type, fromPos, fromName, 200 presence.ControllingClient.SendChatMessage(message, (byte) type, fromPos, fromName,
201 fromAgentID,(byte)src,(byte)ChatAudibleLevel.Fully); 201 fromAgentID,(byte)src,(byte)ChatAudibleLevel.Fully);
202 } 202 }
203 } 203 }
diff --git a/OpenSim/Region/Environment/Modules/Avatar/Chat/IRCBridgeModule.cs b/OpenSim/Region/Environment/Modules/Avatar/Chat/IRCBridgeModule.cs
index 03f9a88..283551b 100644
--- a/OpenSim/Region/Environment/Modules/Avatar/Chat/IRCBridgeModule.cs
+++ b/OpenSim/Region/Environment/Modules/Avatar/Chat/IRCBridgeModule.cs
@@ -43,7 +43,7 @@ namespace OpenSim.Region.Environment.Modules.Avatar.Chat
43{ 43{
44 public class IRCBridgeModule : IRegionModule, ISimChat 44 public class IRCBridgeModule : IRegionModule, ISimChat
45 { 45 {
46 private static readonly ILog m_log = 46 private static readonly ILog m_log =
47 LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); 47 LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType);
48 48
49 private const int DEBUG_CHANNEL = 2147483647; 49 private const int DEBUG_CHANNEL = 2147483647;
@@ -94,7 +94,7 @@ namespace OpenSim.Region.Environment.Modules.Avatar.Chat
94 m_irc_connector.Name = "IRCConnectorThread"; 94 m_irc_connector.Name = "IRCConnectorThread";
95 m_irc_connector.IsBackground = true; 95 m_irc_connector.IsBackground = true;
96 } 96 }
97 m_log.InfoFormat("[IRC] initialized for {0}, nick: {1} ", scene.RegionInfo.RegionName, 97 m_log.InfoFormat("[IRC] initialized for {0}, nick: {1} ", scene.RegionInfo.RegionName,
98 m_defaultzone); 98 m_defaultzone);
99 } 99 }
100 } 100 }
@@ -222,7 +222,7 @@ namespace OpenSim.Region.Environment.Modules.Avatar.Chat
222 if ((m_irc.Enabled) && (m_irc.Connected)) 222 if ((m_irc.Enabled) && (m_irc.Connected))
223 { 223 {
224 m_log.DebugFormat("[IRC] {0} logging on", clientName); 224 m_log.DebugFormat("[IRC] {0} logging on", clientName);
225 m_irc.PrivMsg(m_irc.Nick, "Sim", 225 m_irc.PrivMsg(m_irc.Nick, "Sim",
226 String.Format("notices {0} logging on", clientName)); 226 String.Format("notices {0} logging on", clientName));
227 } 227 }
228 m_last_new_user = clientName; 228 m_last_new_user = clientName;
@@ -288,7 +288,7 @@ namespace OpenSim.Region.Environment.Modules.Avatar.Chat
288 m_log.InfoFormat("[IRC]: {0} logging out", clientName); 288 m_log.InfoFormat("[IRC]: {0} logging out", clientName);
289 } 289 }
290 290
291 if (m_last_new_user == clientName) 291 if (m_last_new_user == clientName)
292 m_last_new_user = null; 292 m_last_new_user = null;
293 } 293 }
294 } 294 }
@@ -588,7 +588,7 @@ namespace OpenSim.Region.Environment.Modules.Avatar.Chat
588 if (!avatar.IsChildAgent) 588 if (!avatar.IsChildAgent)
589 { 589 {
590 avatar.ControllingClient.SendChatMessage( 590 avatar.ControllingClient.SendChatMessage(
591 Helpers.StringToField(data["msg"]), 591 Helpers.StringToField(data["msg"]),
592 1, // 255, 592 1, // 255,
593 pos, data["nick"], 593 pos, data["nick"],
594 LLUUID.Zero,(byte)ChatSourceType.Agent,(byte)ChatAudibleLevel.Fully); 594 LLUUID.Zero,(byte)ChatSourceType.Agent,(byte)ChatAudibleLevel.Fully);
@@ -634,9 +634,9 @@ namespace OpenSim.Region.Environment.Modules.Avatar.Chat
634 if (!avatar.IsChildAgent) 634 if (!avatar.IsChildAgent)
635 { 635 {
636 avatar.ControllingClient.SendChatMessage( 636 avatar.ControllingClient.SendChatMessage(
637 Helpers.StringToField(String.Format(format, args)), 637 Helpers.StringToField(String.Format(format, args)),
638 1, //255, 638 1, //255,
639 pos, sender, LLUUID.Zero, 639 pos, sender, LLUUID.Zero,
640 (byte)ChatSourceType.Object, 640 (byte)ChatSourceType.Object,
641 (byte)ChatAudibleLevel.Fully); 641 (byte)ChatAudibleLevel.Fully);
642 } 642 }
diff --git a/OpenSim/Region/Environment/Modules/Avatar/Voice/AsterixVoice/AsteriskVoiceModule.cs b/OpenSim/Region/Environment/Modules/Avatar/Voice/AsterixVoice/AsteriskVoiceModule.cs
index 2e8a8da..80936f6 100644
--- a/OpenSim/Region/Environment/Modules/Avatar/Voice/AsterixVoice/AsteriskVoiceModule.cs
+++ b/OpenSim/Region/Environment/Modules/Avatar/Voice/AsterixVoice/AsteriskVoiceModule.cs
@@ -131,7 +131,7 @@ namespace OpenSim.Region.Environment.Modules.Avatar.Voice.AsterixVoice
131 string capsBase = "/CAPS/" + caps.CapsObjectPath; 131 string capsBase = "/CAPS/" + caps.CapsObjectPath;
132 caps.RegisterHandler("ParcelVoiceInfoRequest", 132 caps.RegisterHandler("ParcelVoiceInfoRequest",
133 new RestStreamHandler("POST", capsBase + m_parcelVoiceInfoRequestPath, 133 new RestStreamHandler("POST", capsBase + m_parcelVoiceInfoRequestPath,
134 delegate(string request, string path, string param, 134 delegate(string request, string path, string param,
135 OSHttpRequest httpRequest, OSHttpResponse httpResponse) 135 OSHttpRequest httpRequest, OSHttpResponse httpResponse)
136 { 136 {
137 return ParcelVoiceInfoRequest(request, path, param, 137 return ParcelVoiceInfoRequest(request, path, param,
@@ -139,7 +139,7 @@ namespace OpenSim.Region.Environment.Modules.Avatar.Voice.AsterixVoice
139 })); 139 }));
140 caps.RegisterHandler("ProvisionVoiceAccountRequest", 140 caps.RegisterHandler("ProvisionVoiceAccountRequest",
141 new RestStreamHandler("POST", capsBase + m_provisionVoiceAccountRequestPath, 141 new RestStreamHandler("POST", capsBase + m_provisionVoiceAccountRequestPath,
142 delegate(string request, string path, string param, 142 delegate(string request, string path, string param,
143 OSHttpRequest httpRequest, OSHttpResponse httpResponse) 143 OSHttpRequest httpRequest, OSHttpResponse httpResponse)
144 { 144 {
145 return ProvisionVoiceAccountRequest(request, path, param, 145 return ProvisionVoiceAccountRequest(request, path, param,
diff --git a/OpenSim/Region/Environment/Modules/Avatar/Voice/SIPVoice/SIPVoiceModule.cs b/OpenSim/Region/Environment/Modules/Avatar/Voice/SIPVoice/SIPVoiceModule.cs
index 77f761f..865894e 100644
--- a/OpenSim/Region/Environment/Modules/Avatar/Voice/SIPVoice/SIPVoiceModule.cs
+++ b/OpenSim/Region/Environment/Modules/Avatar/Voice/SIPVoice/SIPVoiceModule.cs
@@ -104,7 +104,7 @@ namespace OpenSim.Region.Environment.Modules.Avatar.Voice.SIPVoice
104 string capsBase = "/CAPS/" + caps.CapsObjectPath; 104 string capsBase = "/CAPS/" + caps.CapsObjectPath;
105 caps.RegisterHandler("ParcelVoiceInfoRequest", 105 caps.RegisterHandler("ParcelVoiceInfoRequest",
106 new RestStreamHandler("POST", capsBase + m_parcelVoiceInfoRequestPath, 106 new RestStreamHandler("POST", capsBase + m_parcelVoiceInfoRequestPath,
107 delegate(string request, string path, string param, 107 delegate(string request, string path, string param,
108 OSHttpRequest httpRequest, OSHttpResponse httpResponse) 108 OSHttpRequest httpRequest, OSHttpResponse httpResponse)
109 { 109 {
110 return ParcelVoiceInfoRequest(request, path, param, 110 return ParcelVoiceInfoRequest(request, path, param,
@@ -112,7 +112,7 @@ namespace OpenSim.Region.Environment.Modules.Avatar.Voice.SIPVoice
112 })); 112 }));
113 caps.RegisterHandler("ProvisionVoiceAccountRequest", 113 caps.RegisterHandler("ProvisionVoiceAccountRequest",
114 new RestStreamHandler("POST", capsBase + m_provisionVoiceAccountRequestPath, 114 new RestStreamHandler("POST", capsBase + m_provisionVoiceAccountRequestPath,
115 delegate(string request, string path, string param, 115 delegate(string request, string path, string param,
116 OSHttpRequest httpRequest, OSHttpResponse httpResponse) 116 OSHttpRequest httpRequest, OSHttpResponse httpResponse)
117 { 117 {
118 return ProvisionVoiceAccountRequest(request, path, param, 118 return ProvisionVoiceAccountRequest(request, path, param,
diff --git a/OpenSim/Region/Environment/Modules/World/Archiver/ArchiverModule.cs b/OpenSim/Region/Environment/Modules/World/Archiver/ArchiverModule.cs
index 27f16a7..7016d1b 100644
--- a/OpenSim/Region/Environment/Modules/World/Archiver/ArchiverModule.cs
+++ b/OpenSim/Region/Environment/Modules/World/Archiver/ArchiverModule.cs
@@ -39,7 +39,7 @@ namespace OpenSim.Region.Environment.Modules.World.Archiver
39 /// This module loads and saves OpenSimulator archives 39 /// This module loads and saves OpenSimulator archives
40 /// </summary> 40 /// </summary>
41 public class ArchiverModule : IRegionModule, IRegionArchiver 41 public class ArchiverModule : IRegionModule, IRegionArchiver
42 { 42 {
43 private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); 43 private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType);
44 44
45 /// <summary> 45 /// <summary>
@@ -47,51 +47,51 @@ namespace OpenSim.Region.Environment.Modules.World.Archiver
47 /// </summary> 47 /// </summary>
48 /// <param name="scene"></param> 48 /// <param name="scene"></param>
49 /// <param name="source"></param> 49 /// <param name="source"></param>
50 private Scene m_scene; 50 private Scene m_scene;
51 51
52 public string Name { get { return "ArchiverModule"; } } 52 public string Name { get { return "ArchiverModule"; } }
53 53
54 public bool IsSharedModule { get { return false; } } 54 public bool IsSharedModule { get { return false; } }
55 55
56 public void Initialise(Scene scene, IConfigSource source) 56 public void Initialise(Scene scene, IConfigSource source)
57 { 57 {
58 m_scene = scene; 58 m_scene = scene;
59 59
60 m_scene.RegisterModuleInterface<IRegionArchiver>(this); 60 m_scene.RegisterModuleInterface<IRegionArchiver>(this);
61 } 61 }
62 62
63 public void PostInitialise() 63 public void PostInitialise()
64 { 64 {
65 } 65 }
66 66
67 public void Close() 67 public void Close()
68 { 68 {
69 } 69 }
70 70
71 public void ArchiveRegion(string savePath) 71 public void ArchiveRegion(string savePath)
72 { 72 {
73 m_log.Warn("[ARCHIVER]: Archive region not yet implemented"); 73 m_log.Warn("[ARCHIVER]: Archive region not yet implemented");
74 74
75 List<EntityBase> entities = m_scene.GetEntities(); 75 List<EntityBase> entities = m_scene.GetEntities();
76 76
77 foreach (EntityBase entity in entities) 77 foreach (EntityBase entity in entities)
78 { 78 {
79 79
80 } 80 }
81 81
82 string serEntities = SerializeObjects(entities); 82 string serEntities = SerializeObjects(entities);
83 83
84 if (serEntities != null && serEntities.Length > 0) 84 if (serEntities != null && serEntities.Length > 0)
85 { 85 {
86 m_log.DebugFormat("[ARCHIVER]: Successfully got serialization for {0} entities", entities.Count); 86 m_log.DebugFormat("[ARCHIVER]: Successfully got serialization for {0} entities", entities.Count);
87 } 87 }
88 } 88 }
89 89
90 public void DearchiveRegion(string loadPath) 90 public void DearchiveRegion(string loadPath)
91 { 91 {
92 m_log.Warn("[ARCHIVER]: Dearchive region not yet implemented"); 92 m_log.Warn("[ARCHIVER]: Dearchive region not yet implemented");
93 } 93 }
94 94
95 /// <summary> 95 /// <summary>
96 /// Get an xml representation of the given scene objects. 96 /// Get an xml representation of the given scene objects.
97 /// </summary> 97 /// </summary>
@@ -115,8 +115,8 @@ namespace OpenSim.Region.Environment.Modules.World.Archiver
115 serialization += serObject; 115 serialization += serObject;
116 116
117 serialization += "</scene>"; 117 serialization += "</scene>";
118 118
119 return serialization; 119 return serialization;
120 } 120 }
121 } 121 }
122} \ No newline at end of file 122} \ No newline at end of file
diff --git a/OpenSim/Region/Environment/Modules/World/Archiver/IRegionArchiver.cs b/OpenSim/Region/Environment/Modules/World/Archiver/IRegionArchiver.cs
index 485cf02..b949666 100644
--- a/OpenSim/Region/Environment/Modules/World/Archiver/IRegionArchiver.cs
+++ b/OpenSim/Region/Environment/Modules/World/Archiver/IRegionArchiver.cs
@@ -28,7 +28,7 @@
28using OpenSim.Region.Environment.Scenes; 28using OpenSim.Region.Environment.Scenes;
29 29
30namespace OpenSim.Region.Environment.Modules.World.Archiver 30namespace OpenSim.Region.Environment.Modules.World.Archiver
31{ 31{
32 /// <summary> 32 /// <summary>
33 /// Interface to region archive functionality 33 /// Interface to region archive functionality
34 /// </summary> 34 /// </summary>
@@ -39,7 +39,7 @@ namespace OpenSim.Region.Environment.Modules.World.Archiver
39 /// </summary> 39 /// </summary>
40 /// <param name="savePath"></param> 40 /// <param name="savePath"></param>
41 void ArchiveRegion(string savePath); 41 void ArchiveRegion(string savePath);
42 42
43 /// <summary> 43 /// <summary>
44 /// Dearchive the given region archive into the scene 44 /// Dearchive the given region archive into the scene
45 /// </summary> 45 /// </summary>
diff --git a/OpenSim/Region/Environment/Modules/World/Land/LandObject.cs b/OpenSim/Region/Environment/Modules/World/Land/LandObject.cs
index 2f4f971..f5b1a1d 100644
--- a/OpenSim/Region/Environment/Modules/World/Land/LandObject.cs
+++ b/OpenSim/Region/Environment/Modules/World/Land/LandObject.cs
@@ -731,7 +731,7 @@ namespace OpenSim.Region.Environment.Modules.World.Land
731 if (obj.OwnerID == owners[i]) 731 if (obj.OwnerID == owners[i])
732 objlist.Add(obj); 732 objlist.Add(obj);
733 } 733 }
734 } 734 }
735 catch (InvalidOperationException) 735 catch (InvalidOperationException)
736 { 736 {
737 m_log.Info("[PARCEL]: Unable to figure out all the objects owned by " + owners[i].ToString() + " arr."); 737 m_log.Info("[PARCEL]: Unable to figure out all the objects owned by " + owners[i].ToString() + " arr.");
@@ -751,7 +751,7 @@ namespace OpenSim.Region.Environment.Modules.World.Land
751 landData.ownerPrims = 0; 751 landData.ownerPrims = 0;
752 landData.otherPrims = 0; 752 landData.otherPrims = 0;
753 landData.selectedPrims = 0; 753 landData.selectedPrims = 0;
754 754
755 755
756 lock (primsOverMe) 756 lock (primsOverMe)
757 primsOverMe.Clear(); 757 primsOverMe.Clear();
@@ -759,7 +759,7 @@ namespace OpenSim.Region.Environment.Modules.World.Land
759 759
760 public void addPrimToCount(SceneObjectGroup obj) 760 public void addPrimToCount(SceneObjectGroup obj)
761 { 761 {
762 762
763 LLUUID prim_owner = obj.OwnerID; 763 LLUUID prim_owner = obj.OwnerID;
764 int prim_count = obj.PrimCount; 764 int prim_count = obj.PrimCount;
765 765