]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/inspircd.cpp
Add fine-grained command flood controls
[user/henk/code/inspircd.git] / src / inspircd.cpp
index 19f90dd9785ac445cc36ebfa18bff67cfd1e3ac4..b67815ed24a6c09c360121bb71a7b00cec4059e1 100644 (file)
@@ -113,6 +113,8 @@ void InspIRCd::Cleanup()
        /* Must be deleted before modes as it decrements modelines */
        if (FakeClient)
                FakeClient->cull();
+       if (Res)
+               Res->cull();
        DeleteZero(this->FakeClient);
        DeleteZero(this->Users);
        DeleteZero(this->Modes);
@@ -523,7 +525,7 @@ InspIRCd::InspIRCd(int argc, char** argv) :
        this->Config->Apply(NULL, "");
        Logs->OpenFileLogs();
 
-       this->Res = new DNS;
+       this->Res = new DNS();
 
        /*
         * Initialise SID/UID.
@@ -546,8 +548,7 @@ InspIRCd::InspIRCd(int argc, char** argv) :
        }
 
        /* set up fake client again this time with the correct uid */
-       this->FakeClient = new FakeUser("!");
-       this->FakeClient->SetFakeServer(Config->ServerName);
+       this->FakeClient = new FakeUser(Config->sid, Config->ServerName);
 
        // Get XLine to do it's thing.
        this->XLines->CheckELines();