]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/socketengine.cpp
Fix inverted logic in restrictchans that caused it to not play nice with permchannels.
[user/henk/code/inspircd.git] / src / socketengine.cpp
index c7188b55a1dad76572c8e6c4efb6cbc651d0e4f8..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;
+
+       this->IOHook = NULL;
+       return true;
+}
+
+Module *EventHandler::GetIOHook()
+{
+       return this->IOHook;
+}
+
 int EventHandler::GetFd()
 {
        return this->fd;