Newsgroups : Borland : borland.public.delphi.internet.winsock : 2006 May : TidIRC OnPrivateMessage

www.cryer.info
Managed Newsgroup Archive

TidIRC OnPrivateMessage

Subject:TidIRC OnPrivateMessage
Posted by:"Danila Vershinin" (profyprepatyandexdotru)
Date:Sat, 27 May 2006 19:24:18

I've recently upgraded to 10.1.5 of Indy and encountered weird thing with
TIdIRC. In particular OnPrivateMessage event with it. It trims characters
(and I don't know what could make it trim characters) of private messages.
For instance in the message log of IRC client.
trim test1
trim test2
trim test2
(3 PMs)
In OnPrivateMessage (saved to text file from within the app):
tri
tri
tri

It for reason unknown might trim all but one last character, or all but
first few.  For instance: error > erro .

The following is my testing code:
lstPrivate: TStringList;
...
procedure TForm1.IdIRC1PrivateMessage(ASender: TIdContext;
  const ANicknameFrom, AHost, ANicknameTo, AMessage: String);
begin
  lstPrivate.Add(AMessage);
end;

procedure TForm1.FormClose(Sender: TObject; var Action: TCloseAction);
begin
  lstPrivate.SaveToFile('C:\test.txt');
end;

Replies:

www.cryer.info
Managed Newsgroup Archive