X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Fsocketengine.cpp;h=0a071796480cf78d731b559bc2fb1022ee9a8397;hb=2a88309abe3f5757b7638e32d44bc89b7d4f5b0e;hp=a1e3a8ef0a4e268f99081baa6302c94ad21c3b39;hpb=f012abe4908f9ce16435b42c8c3521b50b1a1f6b;p=user%2Fhenk%2Fcode%2Finspircd.git 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; }