]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/inspircd.cpp
Split the channel mode and extban replies.
[user/henk/code/inspircd.git] / src / inspircd.cpp
index 70e5fcf38649b93102b42cbc911f7dbf42c5f22b..f35482f618a975d48373385b31f4cf5edd8fde73 100644 (file)
@@ -93,8 +93,11 @@ void InspIRCd::Cleanup()
        }
        ports.clear();
 
-       // Disconnect all local users
+       // Tell modules that we're shutting down.
        const std::string quitmsg = "Server shutting down";
+       FOREACH_MOD(OnShutdown, (quitmsg));
+
+       // Disconnect all local users
        const UserManager::LocalList& list = Users.GetLocalUsers();
        while (!list.empty())
                ServerInstance->Users.QuitUser(list.front(), quitmsg);