#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()