summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-10-28 13:28:21 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-10-28 13:28:21 +0000
commitd9b74b49d9ff87f7ce36f2909adb427be4482c68 (patch)
tree3de9b02f0203d25d59452aa5c78a7417c35b20f2
parentf5d72291213ae9749f1c727ff984c536d7d6fe68 (diff)
Try this, werdnum
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5562 e03df62e-2008-0410-955e-edbf42e46eb7
-rw-r--r--src/inspircd.cpp2
-rw-r--r--src/users.cpp2
2 files changed, 4 insertions, 0 deletions
diff --git a/src/inspircd.cpp b/src/inspircd.cpp
index 421b91ebe..2f44e9735 100644
--- a/src/inspircd.cpp
+++ b/src/inspircd.cpp
@@ -185,6 +185,8 @@ InspIRCd::InspIRCd(int argc, char** argv)
factory.resize(255);
this->Config = new ServerConfig(this);
+ this->Config->opertypes.clear();
+ this->Config->operclass.clear();
this->SNO = new SnomaskManager(this);
this->Start();
this->TIME = this->OLDTIME = this->startup_time = time(NULL);
diff --git a/src/users.cpp b/src/users.cpp
index 7d2d8549a..6ee51bb3a 100644
--- a/src/users.cpp
+++ b/src/users.cpp
@@ -31,8 +31,10 @@ unsigned long uniq_id = 0;
bool InitTypes(ServerConfig* conf, const char* tag)
{
+ conf->GetInstance()->Log(DEBUG,"Currently %d items to clear",conf->opertypes.size());
for (opertype_t::iterator n = conf->opertypes.begin(); n != conf->opertypes.end(); n++)
{
+ conf->GetInstance()->Log(DEBUG,"Clear item");
if (n->second)
delete[] n->second;
}