diff options
| author | 2016-08-08 14:31:49 +0200 | |
|---|---|---|
| committer | 2016-08-08 14:31:49 +0200 | |
| commit | eef55acb1dbb2ae6c0202fec54e12506c064f892 (patch) | |
| tree | d7e4e3e313053294192715d9f7bca1b426b8d232 /src/modules/m_httpd.cpp | |
| parent | Pass sendq to OnStreamSocketWrite (diff) | |
| download | inspircd++-eef55acb1dbb2ae6c0202fec54e12506c064f892.tar.gz inspircd++-eef55acb1dbb2ae6c0202fec54e12506c064f892.tar.bz2 inspircd++-eef55acb1dbb2ae6c0202fec54e12506c064f892.zip | |
Add StreamSocket::GetModHook() for obtaining the IOHook belonging to a given module
Use it to simplify logic in all modules using or providing IOHooks
Diffstat (limited to 'src/modules/m_httpd.cpp')
| -rw-r--r-- | src/modules/m_httpd.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/m_httpd.cpp b/src/modules/m_httpd.cpp index 760647d47..0b6b2e32b 100644 --- a/src/modules/m_httpd.cpp +++ b/src/modules/m_httpd.cpp @@ -413,7 +413,7 @@ class ModuleHttpServer : public Module { HttpServerSocket* sock = *i; ++i; - if (sock->GetIOHook() && sock->GetIOHook()->prov->creator == mod) + if (sock->GetModHook(mod)) { sock->cull(); delete sock; |
