]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/socketengine.cpp
Fix a stupid error, and two warnings.
[user/henk/code/inspircd.git] / src / socketengine.cpp
index c7188b55a1dad76572c8e6c4efb6cbc651d0e4f8..a1e3a8ef0a4e268f99081baa6302c94ad21c3b39 100644 (file)
 #include "inspircd.h"
 #include "socketengine.h"
 
+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 = false;
+       return true;
+}
+
+Module *EventHandler::GetIOHook()
+{
+       return this->IOHook;
+}
+
 int EventHandler::GetFd()
 {
        return this->fd;