diff options
author | Diva Canto | 2011-05-27 13:07:18 -0700 |
---|---|---|
committer | Diva Canto | 2011-05-27 13:07:18 -0700 |
commit | 76525be7b2cb1a72c45a72801dac871c4a338bcb (patch) | |
tree | fd7d22e2b7dfae7d5041b8b6be36a5fe892c7344 /OpenSim/Region/CoreModules/Avatar/Lure/LureModule.cs | |
parent | Avoid a scary warning message about null replies from the user agent service. (diff) | |
download | opensim-SC_OLD-76525be7b2cb1a72c45a72801dac871c4a338bcb.zip opensim-SC_OLD-76525be7b2cb1a72c45a72801dac871c4a338bcb.tar.gz opensim-SC_OLD-76525be7b2cb1a72c45a72801dac871c4a338bcb.tar.bz2 opensim-SC_OLD-76525be7b2cb1a72c45a72801dac871c4a338bcb.tar.xz |
HG lures working! Friends can offer friends HG teleports via the profile. WARNING: additional configuration for HG inis -- see *Common.ini.example
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Region/CoreModules/Avatar/Lure/LureModule.cs | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/OpenSim/Region/CoreModules/Avatar/Lure/LureModule.cs b/OpenSim/Region/CoreModules/Avatar/Lure/LureModule.cs index d1d7df2..d295384 100644 --- a/OpenSim/Region/CoreModules/Avatar/Lure/LureModule.cs +++ b/OpenSim/Region/CoreModules/Avatar/Lure/LureModule.cs | |||
@@ -45,16 +45,19 @@ namespace OpenSim.Region.CoreModules.Avatar.Lure | |||
45 | private readonly List<Scene> m_scenes = new List<Scene>(); | 45 | private readonly List<Scene> m_scenes = new List<Scene>(); |
46 | 46 | ||
47 | private IMessageTransferModule m_TransferModule = null; | 47 | private IMessageTransferModule m_TransferModule = null; |
48 | private bool m_Enabled = true; | 48 | private bool m_Enabled = false; |
49 | 49 | ||
50 | public void Initialise(IConfigSource config) | 50 | public void Initialise(IConfigSource config) |
51 | { | 51 | { |
52 | if (config.Configs["Messaging"] != null) | 52 | if (config.Configs["Messaging"] != null) |
53 | { | 53 | { |
54 | if (config.Configs["Messaging"].GetString( | 54 | if (config.Configs["Messaging"].GetString( |
55 | "LureModule", "LureModule") != | 55 | "LureModule", "LureModule") == |
56 | "LureModule") | 56 | "LureModule") |
57 | m_Enabled = false; | 57 | { |
58 | m_Enabled = true; | ||
59 | m_log.DebugFormat("[LURE MODULE]: {0} enabled", Name); | ||
60 | } | ||
58 | } | 61 | } |
59 | } | 62 | } |
60 | 63 | ||
@@ -74,6 +77,9 @@ namespace OpenSim.Region.CoreModules.Avatar.Lure | |||
74 | 77 | ||
75 | public void RegionLoaded(Scene scene) | 78 | public void RegionLoaded(Scene scene) |
76 | { | 79 | { |
80 | if (!m_Enabled) | ||
81 | return; | ||
82 | |||
77 | if (m_TransferModule == null) | 83 | if (m_TransferModule == null) |
78 | { | 84 | { |
79 | m_TransferModule = | 85 | m_TransferModule = |
@@ -96,6 +102,9 @@ namespace OpenSim.Region.CoreModules.Avatar.Lure | |||
96 | 102 | ||
97 | public void RemoveRegion(Scene scene) | 103 | public void RemoveRegion(Scene scene) |
98 | { | 104 | { |
105 | if (!m_Enabled) | ||
106 | return; | ||
107 | |||
99 | lock (m_scenes) | 108 | lock (m_scenes) |
100 | { | 109 | { |
101 | m_scenes.Remove(scene); | 110 | m_scenes.Remove(scene); |