From 3daff89138e7ba1c31dd18bba0856ae3999fc0b8 Mon Sep 17 00:00:00 2001 From: brain Date: Tue, 5 Dec 2006 21:19:19 +0000 Subject: 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 --- src/modules.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/modules.cpp') 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; } } -- cgit v1.3.1-10-gc9f91