diff options
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; } } |