summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/socketengine.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/socketengine.cpp b/src/socketengine.cpp
index a1e3a8ef0..0a0717964 100644
--- a/src/socketengine.cpp
+++ b/src/socketengine.cpp
@@ -41,6 +41,11 @@
#include "inspircd.h"
#include "socketengine.h"
+EventHandler::EventHandler()
+{
+ this->IOHook = NULL;
+}
+
bool EventHandler::AddIOHook(Module *IOHooker)
{
if (this->IOHook)
@@ -55,7 +60,7 @@ bool EventHandler::DelIOHook()
if (!this->IOHook)
return false;
- this->IOHook = false;
+ this->IOHook = NULL;
return true;
}