]> git.netwichtig.de Git - user/henk/code/inspircd.git/commitdiff
Fix using std::cout instead of errstr when a port fails to bind.
authorSadie Powell <sadie@witchery.services>
Tue, 2 Mar 2021 22:31:29 +0000 (22:31 +0000)
committerSadie Powell <sadie@witchery.services>
Tue, 2 Mar 2021 22:31:29 +0000 (22:31 +0000)
src/configreader.cpp

index 304dc3705b3ca6514f6a2b3672528de44816a746..fa9bbf10587e00535beec9533b30fdf92167dd9c 100644 (file)
@@ -527,7 +527,7 @@ void ServerConfig::Apply(ServerConfig* old, const std::string &useruid)
                ServerInstance->BindPorts(pl);
                if (!pl.empty())
                {
-                       std::cout << "Warning! Some of your listener" << (pl.size() == 1 ? "s" : "") << " failed to bind:" << std::endl;
+                       errstr << "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)
                        {
                                const FailedPort& fp = *iter;