Little bug fix on the Groups module to get over an exception upon login.

This commit is contained in:
diva
2009-04-18 22:31:38 +00:00
parent 659b55905d
commit 5ae8ad55cd

View File

@@ -123,8 +123,10 @@ namespace OpenSim.Region.OptionalModules.Avatar.XmlRpcGroups
public void AddRegion(Scene scene)
{
scene.RegisterModuleInterface<IGroupsModule>(this);
if (m_GroupsEnabled)
scene.RegisterModuleInterface<IGroupsModule>(this);
}
public void RegionLoaded(Scene scene)
{
if (m_debugEnabled) m_log.InfoFormat("[GROUPS] {0} called", System.Reflection.MethodBase.GetCurrentMethod().Name);