From 1c5ff92c9398c01708158f0a057905ad50a3255c Mon Sep 17 00:00:00 2001 From: Adam Date: Mon, 29 Aug 2011 17:08:26 -0400 Subject: Changed a few fatal exceptions to shutdown a bit more gracefully --- modules/protocol/unreal.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'modules/protocol/unreal.cpp') 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)); -- cgit