Internet Direct (Indy) Version 9.0.2 Beta
TIdIRCServer.OnCommandSQuit
Event handler for the IRC SQUIT command.

property OnCommandSQuit: TIdIrcTwoParmEvent;
Description
OnCommandSQuit is a TIdIrcTwoParmEvent event handler that allows the server to respond to the IRC SQUIT command. SQUIT is used to send a notification that a server is stopping or has ceased to function. If a server wishes to break the connection to another server it must send a SQUIT message to the other server, using the name of the other server as the server parameter, which then closes its connection to the quitting server.

This command is also available operators to help keep a network of IRC servers connected in an orderly fashion. Operators may also issue an SQUIT message for a remote server connection. In this case, the SQUIT must be parsed by each server in between the operator and the remote server, updating the view of the network held by each server as explained below.

Parm2 should be supplied by all operators who execute a SQUIT for a remote server (that is not connected to the server they are currently on) so that other operators are aware for the reason of this action. Parm2 is also filled in by servers which may place an error or similar message here.

Both of the servers which are on either side of the connection being closed are required to send out a SQUIT message (to all its other server connections) for all other servers which are considered to be behind that link.

Similarly, a QUIT message must be sent to the other connected servers rest of the network on behalf of all clients behind that link. In addition to this, all channel members of a channel which lost a member due to the split must be sent a QUIT message.

If a server connection is terminated prematurely (e.g. the server on the other end of the link died), the server which detects this disconnection is required to inform the rest of the network that the connection has closed and fill in the comment field with something appropriate.