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.
Building an IRC Client - Sending Messages (Page 4 of 5 )
Below I've listed the code for one of two options that enable you to send a new message. The other is the button with the caption "Say something." The difference between the two is that this particular option enables you to send a message by pressing the return key.
This event is fired when you receive a C(lient) T(o) C(lient) query. Again, you can show as much or as little information about this query as you like. You have the following information at your disposal: receiver's nickname, hostname, channel name, sender's nickname and the command that the client used for the query.
This event handles what you do when you receive a notice. There is a great deal of information available about the notice. I only added the actual content of the notice.