summaryrefslogtreecommitdiff
path: root/modules/commands/os_module.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/commands/os_module.cpp
parentb24ea29bf578e115a3bab71cd33ca2e4672fbfba (diff)
Changed a few fatal exceptions to shutdown a bit more gracefully
Diffstat (limited to 'modules/commands/os_module.cpp')
-rw-r--r--modules/commands/os_module.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/modules/commands/os_module.cpp b/modules/commands/os_module.cpp
index 562e130aa..750a29bfa 100644
--- a/modules/commands/os_module.cpp
+++ b/modules/commands/os_module.cpp
@@ -111,7 +111,10 @@ class CommandOSModReLoad : public Command
else
{
if (fatal)
- throw FatalException("Unable to reload module " + mname);
+ {
+ quitmsg = "Unable to reload module " + mname;
+ quitting = true;
+ }
else
source.Reply(_("Unable to load module \002%s\002"), mname.c_str());
}