summaryrefslogtreecommitdiff
path: root/src/configreader.cpp
diff options
context:
space:
mode:
authorGravatar w00t2008-07-17 20:07:58 +0000
committerGravatar w00t2008-07-17 20:07:58 +0000
commit21bb2f2acf59f1bdf2853908fe82601531068a21 (patch)
tree0ca85237189811de58ae6b2b2e75aa9f080cb5af /src/configreader.cpp
parentSend strerror() on all socket error messages, this should help diagnose probl... (diff)
Combine IP+port in a failed port list, show (the more helpful) error string so the user can have some idea of what actually went wrong.. why we forced people to strace is beyond me..
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10030 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/configreader.cpp')
-rw-r--r--src/configreader.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/configreader.cpp b/src/configreader.cpp
index 72429f8ac..29ee55eb9 100644
--- a/src/configreader.cpp
+++ b/src/configreader.cpp
@@ -1253,7 +1253,7 @@ void ServerConfig::Read(bool bail, User* user)
int j = 1;
for (FailedPortList::iterator i = pl.begin(); i != pl.end(); i++, j++)
{
- user->WriteServ("NOTICE %s :*** %d. IP: %s Port: %lu", user->nick.c_str(), j, i->first.empty() ? "<all>" : i->first.c_str(), (unsigned long)i->second);
+ user->WriteServ("NOTICE %s :*** %d. Address: %s Reason: %s", user->nick.c_str(), j, i->first.empty() ? "<all>" : i->first.c_str(), i->second.c_str());
}
ServerInstance->Threads->Mutex(false);
}