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:
+5
-1
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user