diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-12-05 21:19:19 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-12-05 21:19:19 +0000 |
commit | 3daff89138e7ba1c31dd18bba0856ae3999fc0b8 (patch) | |
tree | c1b1783d3aa61e5061231ba88c7ce52abc5f1f62 /src/modules.cpp | |
parent | 4c09dec19754390d5542b8a4847d0dc081d2514b (diff) |
Document FindInterface, PublishInterface, UnpublishInterface, fix a bug where the interface wasnt removed when it was decremented to 0 implementing modules
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5874 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules.cpp')
-rw-r--r-- | src/modules.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/modules.cpp b/src/modules.cpp index 05119f9bb..786570a40 100644 --- a/src/modules.cpp +++ b/src/modules.cpp @@ -280,6 +280,8 @@ bool InspIRCd::UnpublishInterface(const std::string &InterfaceName, Module* Mod) if (*x == Mod) { iter->second.erase(x); + if (iter->second.empty()) + Interfaces.erase(InterfaceName); return true; } } |