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

property OnCommandServer: TIdIrcServerEvent;
Description
OnCommandServer is a TIdIrcServerEvent event handler that allows the server to respond to the IRC SERVER command. SERVER is used to tell a server that the other end of a new connection is a server. This message is also used to pass server data over whole net. When a new server is connected to net, information about it be broadcast to the whole network.

HopCount is used to give all servers some internal information on how far away all servers are. With a full server list, it would be possible to construct a map of the entire server tree, but hostmasks prevent this from being done.

If a SERVER message is parsed and attempts to introduce a server which is already known to the receiving server, the connection from which that message must be closed (following the correct procedures), since a duplicate route to a server has formed and the acyclic nature of the IRC tree broken.