summaryrefslogtreecommitdiff
path: root/modules/protocol/unreal.cpp
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2011-08-29 17:08:26 -0400
committerAdam <Adam@anope.org>2011-08-29 17:08:26 -0400
commit1c5ff92c9398c01708158f0a057905ad50a3255c (patch)
tree004f19d488c0a3dc48459d345200f2290ecd5168 /modules/protocol/unreal.cpp
parentb24ea29bf578e115a3bab71cd33ca2e4672fbfba (diff)
Changed a few fatal exceptions to shutdown a bit more gracefully
Diffstat (limited to 'modules/protocol/unreal.cpp')
-rw-r--r--modules/protocol/unreal.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/modules/protocol/unreal.cpp b/modules/protocol/unreal.cpp
index 902309267..38b9da82b 100644
--- a/modules/protocol/unreal.cpp
+++ b/modules/protocol/unreal.cpp
@@ -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));