In this second article in a three-part series, we will discuss the Indy suite, a component which can be used for building an IRC client in Delphi. We will examine its capabilities and determine the minimum level of functionality needed for an IRC client.
A Brief Look at Indy - idIRCclient Component Events (Page 3 of 4 )
Events:
OnConnect Connected to the IRC network. OnDisconnect Disconnected from the IRC network. OnChannelMessage Received a channel message. OnChannelNotice Received a channel notice. OnChannelAction Received a channel action. OnPrivateMessage Received a private message. OnPrivateNotice Received a private notice. OnPrivateAction Received a private action. OnJoin A user joined a channel. OnPart A user parted a channel. OnParted You parted a channel. OnKick A user kicked another user from a channel. OnKicked You were kicked from a channel by a user. OnNickChange A user changed their nick. OnNickChanged Your nick was changed. OnTopic The topic of the channel was changed. OnQuit A user quit IRC. OnNames Received a list of names of people in a channel. OnInvite A user has invited you to a channel. OnInviting You invited a user to a channel. OnPingPong Received a server ping (PONG response sent automatically). OnError Error message from server. OnAway Received an away message for a user. OnNowAway You are marked as being away. OnUnAway You are no longer marked as being away. OnWallops Received a wallops message. OnSystem Any response from the server not handled by a specific event handler. OnRaw Every command from the IRC server goes through this handler first. Normal processing can be suppressed by setting the Suppress parameter to True. OnOp A user was oped in a channel. OnDeop A user was deoped in a channel. OnBan A user was banned in a channel. OnUnban A user was unbanned in a channel. OnVoice A user was given a voice in a channel. OnDevoice A user's voice was taken away in a channel. OnChannelMode The channel mode was changed. OnChannelModeChanged Called after the channel mode change has been parsed and the mode was changed. OnUserMode Your user mode was changed. OnUserModeChanged Called after the user mode change has been parsed and the mode was changed. OnKill A user was killed. OnUnknownCommand An unknown command was received from the server. OnStateChange Called when the current state of the IRC connection changes. OnSend Called for every command sent to the IRC server. Useful for displaying in a raw output window. OnReceive Called for every command received from the IRC server. Useful for displaying in a raw output window. OnNicksInUse Called during the registration process when both Nick and AltNick are in use. OnSocketError An error occurred in the TCP/IP socket. OnNoTopic There is no topic for this channel. OnChannelMode The channel mode is now set. OnLinks Results from a /LINK command OnList Results from a /LIST command