summaryrefslogtreecommitdiff
path: root/src/modules/m_ident.cpp
diff options
context:
space:
mode:
authorSadie Powell <sadie@witchery.services>2020-02-15 05:58:19 +0000
committerSadie Powell <sadie@witchery.services>2020-02-15 06:25:12 +0000
commit24f1224f770eb8f6a075d3c8bd083545c17bba10 (patch)
tree2955e3c0e789f8b3fd872a2e52d1fa3dda4b8656 /src/modules/m_ident.cpp
parentf9b4c280f8e7bec0c9237f9648c4fc5a77cfc468 (diff)
Add HasFd to EventHandler and switch code to use it.
Diffstat (limited to 'src/modules/m_ident.cpp')
-rw-r--r--src/modules/m_ident.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/m_ident.cpp b/src/modules/m_ident.cpp
index 5994caee5..dea411cea 100644
--- a/src/modules/m_ident.cpp
+++ b/src/modules/m_ident.cpp
@@ -187,7 +187,7 @@ class IdentRequestSocket : public EventHandler
/* Remove ident socket from engine, and close it, but dont detatch it
* from its parent user class, or attempt to delete its memory.
*/
- if (GetFd() > -1)
+ if (HasFd())
{
ServerInstance->Logs->Log(MODNAME, LOG_DEBUG, "Close ident socket %d", GetFd());
SocketEngine::Close(this);