summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/users.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/users.cpp b/src/users.cpp
index 95ae87f5d..956ed17c0 100644
--- a/src/users.cpp
+++ b/src/users.cpp
@@ -314,7 +314,7 @@ char* User::MakeHostIP()
void User::CloseSocket()
{
- if (this > -1)
+ if (this->fd > -1)
{
ServerInstance->SE->Shutdown(this, 2);
ServerInstance->SE->Close(this);