aboutsummaryrefslogtreecommitdiffstats
path: root/src/modules/m_ident.cpp
diff options
context:
space:
mode:
authorGravatar Sadie Powell2020-02-19 05:12:53 +0000
committerGravatar Sadie Powell2020-02-19 05:12:53 +0000
commit59d2dab8a1849b289dc7304e51e290b70bc3a528 (patch)
tree5afb04b6659cd59e42672730b479554c06e7310a /src/modules/m_ident.cpp
parentBump the module ABI version. (diff)
downloadinspircd++-59d2dab8a1849b289dc7304e51e290b70bc3a528.tar.gz
inspircd++-59d2dab8a1849b289dc7304e51e290b70bc3a528.tar.bz2
inspircd++-59d2dab8a1849b289dc7304e51e290b70bc3a528.zip
Convert some things to HasFd that were previously missed.
Diffstat (limited to 'src/modules/m_ident.cpp')
-rw-r--r--src/modules/m_ident.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/modules/m_ident.cpp b/src/modules/m_ident.cpp
index dea411cea..15e46b83a 100644
--- a/src/modules/m_ident.cpp
+++ b/src/modules/m_ident.cpp
@@ -113,8 +113,7 @@ class IdentRequestSocket : public EventHandler
age = ServerInstance->Time();
SetFd(socket(user->server_sa.family(), SOCK_STREAM, 0));
-
- if (GetFd() == -1)
+ if (!HasFd())
throw ModuleException("Could not create socket");
done = false;