hi, vielleicht hilft dir das [TClientSocket] :
Delphi-Quellcode:
..
var
s:string; i:integer; sl:TStringList;
begin
sl:=tstringlist.create;
sl.text:=socket.receivetext;
for i:=0 to sl.count-1 do
begin
s:=sl.strings[i];
If Pos('PING', s)<>0 Then begin
s[Pos('PING', s)+1]:='O';
cs.Socket.SendText(s+#13#10);
end;
if Pos('376', s)<>0 then
begin
cs.socket.SendText('JOIN #testchannel'+#13#10);
end;
end;
..