]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/configreader.cpp
Seperate ModeReference into ChanModeReference and UserModeReference
[user/henk/code/inspircd.git] / src / configreader.cpp
index 85cf357c48eecdf250f300316f4870c00199c0a4..b8c54bef9a5ba5ae41696bafcdf3da71b94ea827 100644 (file)
@@ -372,10 +372,6 @@ void ServerConfig::Fill()
                std::string nsid = ConfValue("server")->getString("id");
                if (!nsid.empty() && nsid != sid)
                        throw CoreException("You must restart to change the server id");
-
-               if (Limits.MaxLine != static_cast<size_t>(ConfValue("limits")->getInt("maxline", 512)))
-                       throw CoreException("You must restart to change the maximum line length");
-
        }
        diepass = ConfValue("power")->getString("diepass");
        restartpass = ConfValue("power")->getString("restartpass");
@@ -829,7 +825,7 @@ void ConfigReaderThread::Finish()
                 */
                ServerInstance->XLines->CheckELines();
                ServerInstance->XLines->ApplyLines();
-               ModeReference ban(NULL, "ban");
+               ChanModeReference ban(NULL, "ban");
                static_cast<ListModeBase*>(*ban)->DoRehash();
                Config->ApplyDisabledCommands(Config->DisabledCommands);
                User* user = ServerInstance->FindNick(TheUserUID);