unit Unit1;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, IdBaseComponent, IdComponent, IdTCPConnection, IdTCPClient,
IdIRC, StdCtrls;
type
TForm1 =
class(TForm)
Button1: TButton;
Edit1: TEdit;
Label1: TLabel;
IdIRC1: TIdIRC;
Button2: TButton;
Edit2: TEdit;
Label2: TLabel;
Button3: TButton;
procedure Button1Click(Sender: TObject);
procedure Button2Click(Sender: TObject);
procedure Button3Click(Sender: TObject);
procedure Button5Click(Sender: TObject);
procedure Button6Click(Sender: TObject);
private
{ Private-Deklarationen }
public
{ Public-Deklarationen }
end;
var
Form1: TForm1;
implementation
{$R *.dfm}
procedure TForm1.Button1Click(Sender: TObject);
begin
IdIRC1.Host := '
irc.quakenet.org';
IdIRC1.Port := 6667;
IdIRC1.Username := '
ganesh303';
IdIRC1.Realname := '
ganesh303';
IdIRC1.Nick := '
ganesh303';
end;
procedure TForm1.Button2Click(Sender: TObject);
begin
IdIRC1.Connect(3000);
end;
procedure TForm1.Button3Click(Sender: TObject);
begin
IdIRC1.Join('
#ganesh303');
end;
procedure TForm1.Button5Click(Sender: TObject);
begin
IdIRC1.Disconnect;
end;
procedure TForm1.Button6Click(Sender: TObject);
begin
label1.Color:=clBtnFace;
end;
end.