summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/users.cpp10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/users.cpp b/src/users.cpp
index f5183646c..0552ca882 100644
--- a/src/users.cpp
+++ b/src/users.cpp
@@ -376,7 +376,10 @@ void kill_link(userrec *user,const char* r)
if (user->fd > -1)
{
- FOREACH_MOD OnRawSocketClose(user->fd);
+ if (IOHookModule)
+ {
+ IOHookModule->OnRawSocketClose(user->fd);
+ }
SE->DelFd(user->fd);
user->CloseSocket();
}
@@ -436,7 +439,10 @@ void kill_link_silent(userrec *user,const char* r)
if (user->fd > -1)
{
- FOREACH_MOD OnRawSocketClose(user->fd);
+ if (IOHookModule)
+ {
+ IOHookModule->OnRawSocketClose(user->fd);
+ }
SE->DelFd(user->fd);
user->CloseSocket();
}