diff options
| author | 2020-01-01 12:33:10 +0100 | |
|---|---|---|
| committer | 2020-01-01 12:33:10 +0100 | |
| commit | f856d5ab8af6a0ffd3e5f63a5711e256e8e74267 (patch) | |
| tree | 941b8135b5183b1d1e48fe108aeaa5bff5678a14 /src/configreader.cpp | |
| parent | Get rid of UserManager#OperCount and UserManager#UserCount. (diff) | |
| parent | Update my name and email address. (diff) | |
| download | inspircd++-f856d5ab8af6a0ffd3e5f63a5711e256e8e74267.tar.gz inspircd++-f856d5ab8af6a0ffd3e5f63a5711e256e8e74267.tar.bz2 inspircd++-f856d5ab8af6a0ffd3e5f63a5711e256e8e74267.zip | |
Merge branch 'insp3' into master.
Diffstat (limited to 'src/configreader.cpp')
| -rw-r--r-- | src/configreader.cpp | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/src/configreader.cpp b/src/configreader.cpp index 51cb116f7..f0c7cfd3a 100644 --- a/src/configreader.cpp +++ b/src/configreader.cpp @@ -495,18 +495,17 @@ void ServerConfig::Apply(ServerConfig* old, const std::string &useruid) ServerInstance->BindPorts(pl); if (pl.size()) { - errstr << "Not all your client ports could be bound." << std::endl - << "The following port(s) failed to bind:" << std::endl; - - int j = 1; - for (FailedPortList::iterator i = pl.begin(); i != pl.end(); i++, j++) + std::cout << "Warning! Some of your listener" << (pl.size() == 1 ? "s" : "") << " failed to bind:" << std::endl; + for (FailedPortList::const_iterator iter = pl.begin(); iter != pl.end(); ++iter) { - errstr << j << ".\tAddress: " << i->first.str() << "\tReason: " << strerror(i->second) << std::endl; + const FailedPort& fp = *iter; + errstr << " " << fp.sa.str() << ": " << strerror(fp.error) << std::endl + << " " << "Created from <bind> tag at " << fp.tag->getTagLocation() << std::endl; } } } - User* user = useruid.empty() ? NULL : ServerInstance->FindNick(useruid); + User* user = useruid.empty() ? NULL : ServerInstance->FindUUID(useruid); if (!valid) { @@ -690,8 +689,8 @@ void ConfigReaderThread::OnStop() ServerInstance->Users.RehashCloneCounts(); ServerInstance->XLines->CheckELines(); ServerInstance->XLines->ApplyLines(); - User* user = ServerInstance->FindUUID(UUID); + User* user = ServerInstance->FindUUID(UUID); ConfigStatus status(user); const ModuleManager::ModuleMap& mods = ServerInstance->Modules.GetModules(); for (ModuleManager::ModuleMap::const_iterator i = mods.begin(); i != mods.end(); ++i) |
