From 5ae8ad55cda56b023be0efced1a41387d4889783 Mon Sep 17 00:00:00 2001 From: diva Date: Sat, 18 Apr 2009 22:31:38 +0000 Subject: Little bug fix on the Groups module to get over an exception upon login. --- .../Region/OptionalModules/Avatar/XmlRpcGroups/XmlRpcGroupsModule.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'OpenSim/Region') diff --git a/OpenSim/Region/OptionalModules/Avatar/XmlRpcGroups/XmlRpcGroupsModule.cs b/OpenSim/Region/OptionalModules/Avatar/XmlRpcGroups/XmlRpcGroupsModule.cs index ca08fe2..6252d56 100644 --- a/OpenSim/Region/OptionalModules/Avatar/XmlRpcGroups/XmlRpcGroupsModule.cs +++ b/OpenSim/Region/OptionalModules/Avatar/XmlRpcGroups/XmlRpcGroupsModule.cs @@ -123,8 +123,10 @@ namespace OpenSim.Region.OptionalModules.Avatar.XmlRpcGroups public void AddRegion(Scene scene) { - scene.RegisterModuleInterface(this); + if (m_GroupsEnabled) + scene.RegisterModuleInterface(this); } + public void RegionLoaded(Scene scene) { if (m_debugEnabled) m_log.InfoFormat("[GROUPS] {0} called", System.Reflection.MethodBase.GetCurrentMethod().Name); -- cgit v1.1