diff options
author | Adam <Adam@anope.org> | 2011-08-29 17:08:26 -0400 |
---|---|---|
committer | Adam <Adam@anope.org> | 2011-08-29 17:08:26 -0400 |
commit | 1c5ff92c9398c01708158f0a057905ad50a3255c (patch) | |
tree | 004f19d488c0a3dc48459d345200f2290ecd5168 /modules/protocol/ratbox.cpp | |
parent | b24ea29bf578e115a3bab71cd33ca2e4672fbfba (diff) |
Changed a few fatal exceptions to shutdown a bit more gracefully
Diffstat (limited to 'modules/protocol/ratbox.cpp')
-rw-r--r-- | modules/protocol/ratbox.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/modules/protocol/ratbox.cpp b/modules/protocol/ratbox.cpp index 516452ce5..c47189736 100644 --- a/modules/protocol/ratbox.cpp +++ b/modules/protocol/ratbox.cpp @@ -598,6 +598,14 @@ class ProtoRatbox : public Module ModuleManager::Attach(i, this, sizeof(i) / sizeof(Implementation)); } + ~ProtoRatbox() + { + pmodule_ircd_var(NULL); + pmodule_ircd_proto(NULL); + pmodule_ircd_message(NULL); + } + + void OnServerSync(Server *s) { if (nickserv) |