1
0
mirror of https://github.com/anope/anope.git synced 2026-07-02 21:03:13 +02:00

Changed a few fatal exceptions to shutdown a bit more gracefully

This commit is contained in:
Adam
2011-08-29 17:08:26 -04:00
parent b24ea29bf5
commit 1c5ff92c93
9 changed files with 55 additions and 8 deletions
+5 -1
View File
@@ -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);