]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules.cpp
Optimisation of optimisation :P ty w00tie
[user/henk/code/inspircd.git] / src / modules.cpp
index e5a0145c02cbbedbb0e100ee0e7a2efe43d08a71..a267662dfdd0abd16d321f09cc7d7effa9620195 100644 (file)
@@ -535,7 +535,7 @@ void Server::SendTo(userrec* Source, userrec* Dest, std::string s)
        if (!Source)
        {
                // if source is NULL, then the message originates from the local server
-               Write(Dest->fd,":%s %s",this->GetServerName().c_str(),s.c_str());
+               WriteServ_NoFormat(Dest->fd,s.c_str());
        }
        else
        {
@@ -859,7 +859,6 @@ ConfigReader::ConfigReader()
        this->cache = new std::stringstream(std::stringstream::in | std::stringstream::out);
        this->errorlog = new std::stringstream(std::stringstream::in | std::stringstream::out);
        this->readerror = Config->LoadConf(CONFIG_FILE,this->cache,this->errorlog);
-       tags.clear();
        if (!this->readerror)
                this->error = CONF_FILE_NOT_FOUND;
 }
@@ -880,7 +879,6 @@ ConfigReader::ConfigReader(std::string filename)
        this->cache = new std::stringstream(std::stringstream::in | std::stringstream::out);
        this->errorlog = new std::stringstream(std::stringstream::in | std::stringstream::out);
        this->readerror = Config->LoadConf(filename.c_str(),this->cache,this->errorlog);
-       tags.clear();
        if (!this->readerror)
                this->error = CONF_FILE_NOT_FOUND;
 };