From f012abe4908f9ce16435b42c8c3521b50b1a1f6b Mon Sep 17 00:00:00 2001 From: w00t Date: Sun, 7 Sep 2008 18:31:25 +0000 Subject: Fix a stupid error, and two warnings. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10450 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/socketengine.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/socketengine.cpp b/src/socketengine.cpp index 74f8c1861..a1e3a8ef0 100644 --- a/src/socketengine.cpp +++ b/src/socketengine.cpp @@ -47,14 +47,16 @@ bool EventHandler::AddIOHook(Module *IOHooker) return false; this->IOHook = IOHooker; + return true; } bool EventHandler::DelIOHook() { if (!this->IOHook) - return false + return false; this->IOHook = false; + return true; } Module *EventHandler::GetIOHook() -- cgit v1.2.3