summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2005-04-11 19:02:53 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2005-04-11 19:02:53 +0000
commit3ecf9eb7419ad0c89716819b8dc51a423bfe1613 (patch)
treef75b47dc90f897c9045fd6db736ab36e2beeaf98 /src
parent70e7450ebf0ce0fc4670fda0f18599268cd67273 (diff)
More fixes
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@1048 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src')
-rw-r--r--src/inspircd.cpp10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/inspircd.cpp b/src/inspircd.cpp
index ea3feb304..4cf4bd334 100644
--- a/src/inspircd.cpp
+++ b/src/inspircd.cpp
@@ -3520,13 +3520,14 @@ bool LoadModule(const char* filename)
}
}
bool extended = false;
- if (factory.size() < MODCOUNT+1)
+ while (factory.size() <= MODCOUNT+1)
{
factory.push_back(NULL); // make an empty space
+ log(DEFAULT,"Extending factory[]");
bool extended = true;
}
-
- factory[MODCOUNT+1] = new ircd_module(modfile);
+ ircd_module* a = new ircd_module(modfile);
+ factory[MODCOUNT+1] = a;
if (factory[MODCOUNT+1]->LastError())
{
log(DEFAULT,"Unable to load %s: %s",modfile,factory[MODCOUNT+1]->LastError());
@@ -3539,9 +3540,10 @@ bool LoadModule(const char* filename)
if (factory[MODCOUNT+1]->factory)
{
bool mextended = false;
- if (modules.size() < MODCOUNT+1)
+ while (modules.size() < MODCOUNT+1)
{
modules.push_back(NULL);
+ log(DEFAULT,"Extending modules[]");
bool extended = true;
}
modules[MODCOUNT+1] = factory[MODCOUNT+1]->factory->CreateModule();