]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/socketengine.cpp
Remove an extremely noisy piece of debug on startup/rehash - this code works fine...
[user/henk/code/inspircd.git] / src / socketengine.cpp
index 74f8c18617a464b667430ba3fa46513d12d283a8..0a071796480cf78d731b559bc2fb1022ee9a8397 100644 (file)
 #include "inspircd.h"
 #include "socketengine.h"
 
+EventHandler::EventHandler()
+{
+       this->IOHook = NULL;
+}
+
 bool EventHandler::AddIOHook(Module *IOHooker)
 {
        if (this->IOHook)
                return false;
 
        this->IOHook = IOHooker;
+       return true;
 }
 
 bool EventHandler::DelIOHook()
 {
        if (!this->IOHook)
-               return false
+               return false;
 
-       this->IOHook = false;
+       this->IOHook = NULL;
+       return true;
 }
 
 Module *EventHandler::GetIOHook()