1
0
mirror of https://github.com/anope/anope.git synced 2026-06-12 19:14:47 +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
+1 -5
View File
@@ -1768,11 +1768,7 @@ struct IRCDMessageSave final
if (targ->server == Me && (bi = dynamic_cast<BotInfo *>(targ)))
{
if (last_collide == Anope::CurTime)
{
Anope::QuitReason = "Nick collision fight on " + targ->nick;
Anope::Quitting = true;
return;
}
throw ProtocolException("Nick collision fight on " + targ->nick);
IRCD->SendKill(Me, targ->nick, "Nick collision");
IRCD->SendNickChange(targ, targ->nick);