mirror of
https://github.com/inspircd/inspircd.git
synced 2025-03-09 18:49:03 -04:00
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:
parent
f012abe490
commit
73b5d276db
@ -365,7 +365,7 @@ class ModuleSSLGnuTLS : public Module
|
||||
const char* ret = "OK";
|
||||
try
|
||||
{
|
||||
ret = ServerInstance->Config->AddIOHook((Module*)this, (BufferedSocket*)ISR->Sock) ? "OK" : NULL;
|
||||
ret = ISR->Sock->AddIOHook((Module*)this) ? "OK" : NULL;
|
||||
}
|
||||
catch (ModuleException &e)
|
||||
{
|
||||
@ -375,7 +375,7 @@ class ModuleSSLGnuTLS : public Module
|
||||
}
|
||||
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)
|
||||
{
|
||||
|
@ -369,7 +369,7 @@ class ModuleSSLOpenSSL : public Module
|
||||
const char* ret = "OK";
|
||||
try
|
||||
{
|
||||
ret = ServerInstance->Config->AddIOHook((Module*)this, (BufferedSocket*)ISR->Sock) ? "OK" : NULL;
|
||||
ret = ISR->Sock->AddIOHook((Module*)this) ? "OK" : NULL;
|
||||
}
|
||||
catch (ModuleException &e)
|
||||
{
|
||||
@ -380,7 +380,7 @@ class ModuleSSLOpenSSL : public Module
|
||||
}
|
||||
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)
|
||||
{
|
||||
|
@ -109,7 +109,7 @@ class ModuleZLib : public Module
|
||||
const char* ret = "OK";
|
||||
try
|
||||
{
|
||||
ret = ServerInstance->Config->AddIOHook((Module*)this, (BufferedSocket*)ISR->Sock) ? "OK" : NULL;
|
||||
ret = ISR->Sock->AddIOHook((Module*)this) ? "OK" : NULL;
|
||||
}
|
||||
catch (ModuleException& e)
|
||||
{
|
||||
@ -120,7 +120,7 @@ class ModuleZLib : public Module
|
||||
else if (strcmp("IS_UNHOOK", request->GetId()) == 0)
|
||||
{
|
||||
/* 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)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user