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

property OnCommandMode: TIdIrcFiveParmEvent;
Description
OnCommandMode is a TIdIrcFiveParmEvent event handler that allows the server to respond to the IRC MODE command. MODE is a dual-purpose command in IRC that is used to change both username and channel mode information.

Channel mode is provided to allow channel operators to change the characteristics of the channel. In channel mode, Parm2 indicates channel options that include a "+" or "-" character, indicating the action, and one or more of the following channel option characters:

When using the 'o' and 'b' options, a restriction on a total of three per mode command has been imposed.

User mode is provided to allow changes that affect how the user is seen by others, and what extra messages are seen by the client. In User mode, Parm2 indicates user options that include a "+" or "-" character, indicating the action, and one or more of the following user option characters:

If a user attempts to make themselves an operator using the "+o" flag, the attempt should be ignored. There is no restriction, however, on a user removing their operator option flag.