... Then, make sure we also check the old-style module stack before we throw a tantrum

avinationmerge
Tom Grimshaw 2010-07-22 18:05:56 -07:00
parent da5b7e199a
commit bfd883f533
1 changed files with 13 additions and 2 deletions

View File

@ -359,12 +359,23 @@ namespace OpenSim
foreach (string s in m_permsModules) foreach (string s in m_permsModules)
{ {
if (!scene.RegionModules.ContainsKey(s)) if (!scene.RegionModules.ContainsKey(s))
{
bool found = false;
foreach (IRegionModule m in modules)
{
if (m.Name == s)
{
found = true;
}
}
if (!found)
{ {
m_log.Fatal("[MODULES]: Required module " + s + " not found."); m_log.Fatal("[MODULES]: Required module " + s + " not found.");
Environment.Exit(0); Environment.Exit(0);
} }
} }
} }
}
scene.SetModuleInterfaces(); scene.SetModuleInterfaces();
// First Step of bootreport sequence // First Step of bootreport sequence