... Then, make sure we also check the old-style module stack before we throw a tantrum
parent
da5b7e199a
commit
bfd883f533
|
@ -360,8 +360,19 @@ namespace OpenSim
|
||||||
{
|
{
|
||||||
if (!scene.RegionModules.ContainsKey(s))
|
if (!scene.RegionModules.ContainsKey(s))
|
||||||
{
|
{
|
||||||
m_log.Fatal("[MODULES]: Required module " + s + " not found.");
|
bool found = false;
|
||||||
Environment.Exit(0);
|
foreach (IRegionModule m in modules)
|
||||||
|
{
|
||||||
|
if (m.Name == s)
|
||||||
|
{
|
||||||
|
found = true;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if (!found)
|
||||||
|
{
|
||||||
|
m_log.Fatal("[MODULES]: Required module " + s + " not found.");
|
||||||
|
Environment.Exit(0);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue