diff options
author | UbitUmarov | 2015-12-09 21:35:20 +0000 |
---|---|---|
committer | UbitUmarov | 2015-12-09 21:35:20 +0000 |
commit | 42e5ee4c4baaea85e09ed07120418129d317b6c8 (patch) | |
tree | 1b0586c9fd2eb266d47015fdf0b94884e1e5fa1c /OpenSim/Region/OptionalModules/Avatar | |
parent | minor cleanup (diff) | |
download | opensim-SC_OLD-42e5ee4c4baaea85e09ed07120418129d317b6c8.zip opensim-SC_OLD-42e5ee4c4baaea85e09ed07120418129d317b6c8.tar.gz opensim-SC_OLD-42e5ee4c4baaea85e09ed07120418129d317b6c8.tar.bz2 opensim-SC_OLD-42e5ee4c4baaea85e09ed07120418129d317b6c8.tar.xz |
don't keep a reference to config, if not in use
Diffstat (limited to 'OpenSim/Region/OptionalModules/Avatar')
-rw-r--r-- | OpenSim/Region/OptionalModules/Avatar/Chat/IRCBridgeModule.cs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/OpenSim/Region/OptionalModules/Avatar/Chat/IRCBridgeModule.cs b/OpenSim/Region/OptionalModules/Avatar/Chat/IRCBridgeModule.cs index 351dbfe..d6b6642 100644 --- a/OpenSim/Region/OptionalModules/Avatar/Chat/IRCBridgeModule.cs +++ b/OpenSim/Region/OptionalModules/Avatar/Chat/IRCBridgeModule.cs | |||
@@ -79,6 +79,7 @@ namespace OpenSim.Region.OptionalModules.Avatar.Chat | |||
79 | if (!m_config.GetBoolean("enabled", false)) | 79 | if (!m_config.GetBoolean("enabled", false)) |
80 | { | 80 | { |
81 | // m_log.InfoFormat("[IRC-Bridge] module disabled in configuration"); | 81 | // m_log.InfoFormat("[IRC-Bridge] module disabled in configuration"); |
82 | m_config = null; | ||
82 | return; | 83 | return; |
83 | } | 84 | } |
84 | 85 | ||
@@ -104,7 +105,8 @@ namespace OpenSim.Region.OptionalModules.Avatar.Chat | |||
104 | MainServer.Instance.AddXmlRPCHandler("irc_admin", XmlRpcAdminMethod, false); | 105 | MainServer.Instance.AddXmlRPCHandler("irc_admin", XmlRpcAdminMethod, false); |
105 | 106 | ||
106 | m_region = new RegionState(scene, m_config); | 107 | m_region = new RegionState(scene, m_config); |
107 | lock (m_regions) m_regions.Add(m_region); | 108 | lock (m_regions) |
109 | m_regions.Add(m_region); | ||
108 | m_region.Open(); | 110 | m_region.Open(); |
109 | } | 111 | } |
110 | catch (Exception e) | 112 | catch (Exception e) |