]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/inspircd.cpp
m_spanningtree Fix routing of ROUTE_TYPE_MESSAGE messages
[user/henk/code/inspircd.git] / src / inspircd.cpp
index de92872700347dcadb60d03d3d7a6f3d9806a664..75e9f3699d0966a84aff310ffdafeeae0229c7b9 100644 (file)
@@ -120,7 +120,10 @@ void InspIRCd::Cleanup()
        /* Delete objects dynamically allocated in constructor (destructor would be more appropriate, but we're likely exiting) */
        /* Must be deleted before modes as it decrements modelines */
        if (FakeClient)
+       {
+               delete FakeClient->server;
                FakeClient->cull();
+       }
        DeleteZero(this->FakeClient);
        DeleteZero(this->Users);
        DeleteZero(this->Modes);
@@ -457,7 +460,7 @@ InspIRCd::InspIRCd(int argc, char** argv) :
        this->UIDGen.init(Config->sid);
 
        // Create the server user for this server
-       this->FakeClient = new FakeUser(Config->sid, Config->ServerName);
+       this->FakeClient = new FakeUser(Config->sid, Config->ServerName, Config->ServerDesc);
 
        // This is needed as all new XLines are marked pending until ApplyLines() is called
        this->XLines->ApplyLines();