If you have ever wanted to build your own IRC client, keep reading. In this third part of a three-part article series, you will learn how to build an IRC client in Delphi from scratch, with assistance from Indy. While not all possible commands will be implemented, you will learn enough to add to and modify the code as you see fit.
Notice that the message is in a TStrings object. This requires us to loop through the object and then display the information contained within it in a memo.
procedure TForm1.IdIRC1Connect(Sender: TObject);
begin
Memo1.Lines.Add('Connection ok'); //this just confirms that we are connected
This event is fired when a new user joins a channel. How much information you want about a user is up to you, but you can get the user's host name, the channel that the user joined and the user's nickname. I just added it all to the memo.
procedure TForm1.Memo2KeyDown(Sender: TObject; var Key: Word;