Internet Direct (Indy) Version 9.0.1 Beta
TIdIRCServer.OnCommandNick
Event handler for the IRC NICK command.

property OnCommandNick: TIdIrcTwoParmEvent;
Description
OnCommandNick is a TIdIrcTwoParmEvent event handler that allows the server to respond to the IRC NICK command. Nick is used to assign the Nickname in Parm1 to the current user. If the user already has a Nickname, the Nickname is changed to Parm1.

Parm2 is an optional parameter that contains the number of hops from the home server for the user. A local connection has a hop count of 0. If Parm2 is supplied by a client, it is ignored.

The server cannot allow two users to have an identical Nickname. If a Nickname collision occurs, both connection with the Nickname are closed and the entries are removed from the server database.