1
0
mirror of https://github.com/anope/anope.git synced 2026-07-05 13:23:12 +02:00

Changed a few fatal exceptions to shutdown a bit more gracefully

This commit is contained in:
Adam
2011-08-29 17:08:26 -04:00
parent b24ea29bf5
commit 1c5ff92c93
9 changed files with 55 additions and 8 deletions
+8
View File
@@ -1138,6 +1138,14 @@ class ProtoUnreal : public Module
ModuleManager::Attach(I_OnUserNickChange, this);
}
~ProtoUnreal()
{
pmodule_ircd_var(NULL);
pmodule_ircd_proto(NULL);
pmodule_ircd_message(NULL);
}
void OnUserNickChange(User *u, const Anope::string &)
{
u->RemoveModeInternal(ModeManager::FindUserModeByName(UMODE_REGISTERED));