diff options
| author | 2020-02-19 01:29:45 +0000 | |
|---|---|---|
| committer | 2020-02-19 01:29:45 +0000 | |
| commit | 7bdd72f634f994dcbd9bfbc865d0087143fb748d (patch) | |
| tree | 11784350f097d56704426e604fdc0009ec35afb2 /src/socket.cpp | |
| parent | Move FindNickOnly to UserManager. (diff) | |
| parent | Bump the module ABI version. (diff) | |
Merge branch 'insp3' into master.
Diffstat (limited to 'src/socket.cpp')
| -rw-r--r-- | src/socket.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/socket.cpp b/src/socket.cpp index e63f04bc3..eb733cc6e 100644 --- a/src/socket.cpp +++ b/src/socket.cpp @@ -47,7 +47,7 @@ bool InspIRCd::BindPort(ConfigTag* tag, const irc::sockets::sockaddrs& sa, std:: } ListenSocket* ll = new ListenSocket(tag, sa); - if (ll->GetFd() < 0) + if (!ll->HasFd()) { ServerInstance->Logs.Log("SOCKET", LOG_DEFAULT, "Failed to listen on %s from tag at %s: %s", sa.str().c_str(), tag->getTagLocation().c_str(), strerror(errno)); |
