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 /src/init.cpp | |
parent | b24ea29bf578e115a3bab71cd33ca2e4672fbfba (diff) |
Changed a few fatal exceptions to shutdown a bit more gracefully
Diffstat (limited to 'src/init.cpp')
-rw-r--r-- | src/init.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/init.cpp b/src/init.cpp index 49d9759a8..4cff3fc91 100644 --- a/src/init.cpp +++ b/src/init.cpp @@ -21,7 +21,11 @@ void introduce_user(const Anope::string &user) time_t now = Anope::CurTime; static time_t lasttime = now - 4; if (lasttime >= now - 3) - throw FatalException("introduce_user loop detected"); + { + quitmsg = "introduce_user loop detected"; + quitting = true; + return; + } lasttime = now; User *u = finduser(user); |