diff options
-rw-r--r-- | src/inspircd.cpp | 2 | ||||
-rw-r--r-- | src/users.cpp | 2 |
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; } |