aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Environment/Modules/Avatar
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Region/Environment/Modules/Avatar')
-rw-r--r--OpenSim/Region/Environment/Modules/Avatar/Currency/SampleMoney/SampleMoneyModule.cs18
-rw-r--r--OpenSim/Region/Environment/Modules/Avatar/Friends/FriendsModule.cs4
-rw-r--r--OpenSim/Region/Environment/Modules/Avatar/InstantMessage/MessageTransferModule.cs3
3 files changed, 14 insertions, 11 deletions
diff --git a/OpenSim/Region/Environment/Modules/Avatar/Currency/SampleMoney/SampleMoneyModule.cs b/OpenSim/Region/Environment/Modules/Avatar/Currency/SampleMoney/SampleMoneyModule.cs
index f87e2dd..3071026 100644
--- a/OpenSim/Region/Environment/Modules/Avatar/Currency/SampleMoney/SampleMoneyModule.cs
+++ b/OpenSim/Region/Environment/Modules/Avatar/Currency/SampleMoney/SampleMoneyModule.cs
@@ -32,15 +32,16 @@ using System.Net;
32using System.Net.Sockets; 32using System.Net.Sockets;
33using System.Reflection; 33using System.Reflection;
34using System.Xml; 34using System.Xml;
35using OpenMetaverse;
36using log4net; 35using log4net;
37using Nini.Config; 36using Nini.Config;
38using Nwc.XmlRpc; 37using Nwc.XmlRpc;
38using OpenMetaverse;
39using OpenSim.Framework; 39using OpenSim.Framework;
40using OpenSim.Framework.Communications.Cache;
41using OpenSim.Framework.Servers;
40using OpenSim.Region.Environment.Interfaces; 42using OpenSim.Region.Environment.Interfaces;
41using OpenSim.Region.Interfaces; 43using OpenSim.Region.Interfaces;
42using OpenSim.Region.Environment.Scenes; 44using OpenSim.Region.Environment.Scenes;
43using OpenSim.Framework.Communications.Cache;
44 45
45namespace OpenSim.Region.Environment.Modules.Avatar.Currency.SampleMoney 46namespace OpenSim.Region.Environment.Modules.Avatar.Currency.SampleMoney
46{ 47{
@@ -133,6 +134,7 @@ namespace OpenSim.Region.Environment.Modules.Avatar.Currency.SampleMoney
133 if (m_enabled) 134 if (m_enabled)
134 { 135 {
135 scene.RegisterModuleInterface<IMoneyModule>(this); 136 scene.RegisterModuleInterface<IMoneyModule>(this);
137 BaseHttpServer httpServer = scene.CommsManager.HttpServer;
136 138
137 lock (m_scenel) 139 lock (m_scenel)
138 { 140 {
@@ -149,16 +151,16 @@ namespace OpenSim.Region.Environment.Modules.Avatar.Currency.SampleMoney
149 { 151 {
150 // Centralized grid structure using OpenSimWi Redux revision 9+ 152 // Centralized grid structure using OpenSimWi Redux revision 9+
151 // https://opensimwiredux.svn.sourceforge.net/svnroot/opensimwiredux 153 // https://opensimwiredux.svn.sourceforge.net/svnroot/opensimwiredux
152 scene.AddXmlRPCHandler("balanceUpdateRequest", GridMoneyUpdate); 154 httpServer.AddXmlRPCHandler("balanceUpdateRequest", GridMoneyUpdate);
153 scene.AddXmlRPCHandler("userAlert", UserAlert); 155 httpServer.AddXmlRPCHandler("userAlert", UserAlert);
154 } 156 }
155 else 157 else
156 { 158 {
157 // Local Server.. enables functionality only. 159 // Local Server.. enables functionality only.
158 scene.AddXmlRPCHandler("getCurrencyQuote", quote_func); 160 httpServer.AddXmlRPCHandler("getCurrencyQuote", quote_func);
159 scene.AddXmlRPCHandler("buyCurrency", buy_func); 161 httpServer.AddXmlRPCHandler("buyCurrency", buy_func);
160 scene.AddXmlRPCHandler("preflightBuyLandPrep", preflightBuyLandPrep_func); 162 httpServer.AddXmlRPCHandler("preflightBuyLandPrep", preflightBuyLandPrep_func);
161 scene.AddXmlRPCHandler("buyLandPrep", landBuy_func); 163 httpServer.AddXmlRPCHandler("buyLandPrep", landBuy_func);
162 } 164 }
163 } 165 }
164 166
diff --git a/OpenSim/Region/Environment/Modules/Avatar/Friends/FriendsModule.cs b/OpenSim/Region/Environment/Modules/Avatar/Friends/FriendsModule.cs
index 3490b6f..b752404 100644
--- a/OpenSim/Region/Environment/Modules/Avatar/Friends/FriendsModule.cs
+++ b/OpenSim/Region/Environment/Modules/Avatar/Friends/FriendsModule.cs
@@ -116,8 +116,8 @@ namespace OpenSim.Region.Environment.Modules.Avatar.Friends
116 { 116 {
117 if (m_scenes.Count == 0) 117 if (m_scenes.Count == 0)
118 { 118 {
119 scene.AddXmlRPCHandler("presence_update_bulk", processPresenceUpdateBulk); 119 scene.CommsManager.HttpServer.AddXmlRPCHandler("presence_update_bulk", processPresenceUpdateBulk);
120 scene.AddXmlRPCHandler("terminate_friend", processTerminateFriend); 120 scene.CommsManager.HttpServer.AddXmlRPCHandler("terminate_friend", processTerminateFriend);
121 m_friendLists.DefaultTTL = new TimeSpan(1, 0, 0); // store entries for one hour max 121 m_friendLists.DefaultTTL = new TimeSpan(1, 0, 0); // store entries for one hour max
122 m_initialScene = scene; 122 m_initialScene = scene;
123 } 123 }
diff --git a/OpenSim/Region/Environment/Modules/Avatar/InstantMessage/MessageTransferModule.cs b/OpenSim/Region/Environment/Modules/Avatar/InstantMessage/MessageTransferModule.cs
index 353cc77..3977963 100644
--- a/OpenSim/Region/Environment/Modules/Avatar/InstantMessage/MessageTransferModule.cs
+++ b/OpenSim/Region/Environment/Modules/Avatar/InstantMessage/MessageTransferModule.cs
@@ -69,7 +69,8 @@ namespace OpenSim.Region.Environment.Modules.Avatar.InstantMessage
69 { 69 {
70 if (m_Scenes.Count == 0) 70 if (m_Scenes.Count == 0)
71 { 71 {
72 scene.AddXmlRPCHandler("grid_instant_message", processXMLRPCGridInstantMessage); 72 scene.CommsManager.HttpServer.AddXmlRPCHandler(
73 "grid_instant_message", processXMLRPCGridInstantMessage);
73 } 74 }
74 75
75 scene.RegisterModuleInterface<IMessageTransferModule>(this); 76 scene.RegisterModuleInterface<IMessageTransferModule>(this);