mirror of
https://github.com/unrealircd/unrealircd.git
synced 2026-07-09 17:43:12 +02:00
Fix SQUIT being sent back to where it came from.
Reported by Ariadne Conill in https://bugs.unrealircd.org/view.php?id=5906 This patch applies cleanly against 5.2.0-rc1 and 5.0.9.x. Needs more testing, though, as fiddling with SQUIT code and the various directions and far/near server distinctions can be tricky.
This commit is contained in:
+1
-10
@@ -144,15 +144,6 @@ CMD_FUNC(cmd_squit)
|
||||
sendto_umode_global(UMODE_OPER, "Received SQUIT %s from %s (%s)",
|
||||
target->name, get_client_name(client, FALSE), comment);
|
||||
}
|
||||
if (IsOper(client))
|
||||
{
|
||||
/*
|
||||
* It was manually /squit'ed by a human being(we hope),
|
||||
* there is a very good chance they don't want us to
|
||||
* reconnect right away. -Cabal95
|
||||
*/
|
||||
SetSQuit(target);
|
||||
}
|
||||
|
||||
exit_client(target, recv_mtags, comment);
|
||||
exit_client_ex(target, client->direction, recv_mtags, comment);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user