Fix IO hooking modules to use the new (not old) hooking call

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10451 e03df62e-2008-0410-955e-edbf42e46eb7
This commit is contained in:
w00t 2008-09-07 18:49:55 +00:00
parent f012abe490
commit 73b5d276db
3 changed files with 6 additions and 6 deletions

View File

@ -365,7 +365,7 @@ class ModuleSSLGnuTLS : public Module
const char* ret = "OK"; const char* ret = "OK";
try try
{ {
ret = ServerInstance->Config->AddIOHook((Module*)this, (BufferedSocket*)ISR->Sock) ? "OK" : NULL; ret = ISR->Sock->AddIOHook((Module*)this) ? "OK" : NULL;
} }
catch (ModuleException &e) catch (ModuleException &e)
{ {
@ -375,7 +375,7 @@ class ModuleSSLGnuTLS : public Module
} }
else if (strcmp("IS_UNHOOK", request->GetId()) == 0) else if (strcmp("IS_UNHOOK", request->GetId()) == 0)
{ {
return ServerInstance->Config->DelIOHook((BufferedSocket*)ISR->Sock) ? "OK" : NULL; return ISR->Sock->DelIOHook() ? "OK" : NULL;
} }
else if (strcmp("IS_HSDONE", request->GetId()) == 0) else if (strcmp("IS_HSDONE", request->GetId()) == 0)
{ {

View File

@ -369,7 +369,7 @@ class ModuleSSLOpenSSL : public Module
const char* ret = "OK"; const char* ret = "OK";
try try
{ {
ret = ServerInstance->Config->AddIOHook((Module*)this, (BufferedSocket*)ISR->Sock) ? "OK" : NULL; ret = ISR->Sock->AddIOHook((Module*)this) ? "OK" : NULL;
} }
catch (ModuleException &e) catch (ModuleException &e)
{ {
@ -380,7 +380,7 @@ class ModuleSSLOpenSSL : public Module
} }
else if (strcmp("IS_UNHOOK", request->GetId()) == 0) else if (strcmp("IS_UNHOOK", request->GetId()) == 0)
{ {
return ServerInstance->Config->DelIOHook((BufferedSocket*)ISR->Sock) ? "OK" : NULL; return ISR->Sock->DelIOHook() ? "OK" : NULL;
} }
else if (strcmp("IS_HSDONE", request->GetId()) == 0) else if (strcmp("IS_HSDONE", request->GetId()) == 0)
{ {

View File

@ -109,7 +109,7 @@ class ModuleZLib : public Module
const char* ret = "OK"; const char* ret = "OK";
try try
{ {
ret = ServerInstance->Config->AddIOHook((Module*)this, (BufferedSocket*)ISR->Sock) ? "OK" : NULL; ret = ISR->Sock->AddIOHook((Module*)this) ? "OK" : NULL;
} }
catch (ModuleException& e) catch (ModuleException& e)
{ {
@ -120,7 +120,7 @@ class ModuleZLib : public Module
else if (strcmp("IS_UNHOOK", request->GetId()) == 0) else if (strcmp("IS_UNHOOK", request->GetId()) == 0)
{ {
/* Detach from an inspsocket */ /* Detach from an inspsocket */
return ServerInstance->Config->DelIOHook((BufferedSocket*)ISR->Sock) ? "OK" : NULL; return ISR->Sock->DelIOHook() ? "OK" : NULL;
} }
else if (strcmp("IS_HSDONE", request->GetId()) == 0) else if (strcmp("IS_HSDONE", request->GetId()) == 0)
{ {