diff options
| author | 2013-05-24 19:34:25 +0200 | |
|---|---|---|
| committer | 2013-06-07 01:00:10 +0200 | |
| commit | 79db1cf848c64ba50bebadef4c683ae4237080b7 (patch) | |
| tree | fcaed0d8034d5e750de24cb1cd9ee87570816d66 /src/modules/m_spanningtree/main.cpp | |
| parent | Move code between usermanager.(cpp|h), clarify comments (diff) | |
Create IOHook interface (extracted from Module)
Diffstat (limited to 'src/modules/m_spanningtree/main.cpp')
| -rw-r--r-- | src/modules/m_spanningtree/main.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/modules/m_spanningtree/main.cpp b/src/modules/m_spanningtree/main.cpp index aafda7eea..7c698a83e 100644 --- a/src/modules/m_spanningtree/main.cpp +++ b/src/modules/m_spanningtree/main.cpp @@ -26,6 +26,7 @@ #include "inspircd.h" #include "socket.h" #include "xline.h" +#include "iohook.h" #include "resolvers.h" #include "main.h" @@ -740,7 +741,7 @@ void ModuleSpanningTree::OnUnloadModule(Module* mod) { TreeServer* srv = Utils->TreeRoot->GetChild(x); TreeSocket* sock = srv->GetSocket(); - if (sock && sock->GetIOHook() == mod) + if (sock && sock->GetIOHook() && sock->GetIOHook()->creator == mod) { sock->SendError("SSL module unloaded"); sock->Close(); |
