1
0
mirror of https://github.com/anope/anope.git synced 2026-06-30 13:26:38 +02:00

Use ProtocolException instead of setting Quitting manually.

This commit is contained in:
Sadie Powell
2026-03-26 12:06:25 +00:00
parent b199d74088
commit 1b2b4386c1
2 changed files with 3 additions and 10 deletions
+2 -5
View File
@@ -208,11 +208,8 @@ void Kill::Run(MessageSource &source, const std::vector<Anope::string> &params,
static time_t last_time = 0;
if (last_time == Anope::CurTime)
{
Anope::QuitReason = "Kill loop detected. Is Anope U:Lined?";
Anope::Quitting = true;
return;
}
throw ProtocolException("Kill loop detected. Is Anope U:Lined?");
last_time = Anope::CurTime;
bi->OnKill();