Newsgroups : Borland : borland.public.delphi.internet.winsock : 2007 Aug : IDIRC Missing Portions Of The AMessage Within the OnPRIVMSG Method

www.cryer.info
Managed Newsgroup Archive

IDIRC Missing Portions Of The AMessage Within the OnPRIVMSG Method

Subject:IDIRC Missing Portions Of The AMessage Within the OnPRIVMSG Method
Posted by:"Francis" (franc..@taconic.net)
Date:Thu, 30 Aug 2007 11:48:21

I'm using BDS2006 and  or Delphi6 with Indy 10

BDS2006 with Indy 10.1.5

Delphi6 with Indy  10?? (latest from a few days ago)

and my program is generating this output

example1

IRC Raw Message
   PRIVMSG #Beginner :yeh NZ

IRC PrivateMessage Message
   NicknameFrom=:xxxxxxx
   NicknameTo=#Beginner
   AMessage=ye

example2

IRC Raw Message
   PRIVMSG #Beginner :and Lord Of The Rings

IRC PrivateMessage Message
   NicknameFrom=:xxxxxxxx
   NicknameTo=#Beginner
   AMessage=an

example 3

IRC Raw Message
   PRIVMSG #Beginner :hi jomm

IRC PrivateMessage Message
   NicknameFrom=:xxxxxxx
   NicknameTo=#Beginner
   AMessage=h


it appears that the data comming in via the OnRaw method contains more

than the data via the OnPrivMsg method

{******************************************************************************}

procedure TForm1.IdIRC1Raw(ASender: TIdContext; AIn: Boolean;
  const AMessage: String);
begin
    output_to_window('');
    output_to_window('IRC Raw Message');
    output_to_window('   ' + AMessage);
end;

{******************************************************************************}

procedure TForm1.IdIRC1PrivateMessage(ASender: TIdContext;
  const ANicknameFrom, AHost, ANicknameTo, AMessage: String);
begin
  output_window := 0;
  output_to_window('');
  output_to_window('IRC PrivateMessage Message');
  output_to_window('   ' + 'NicknameFrom=' + ANicknameFrom);
  output_to_window('   ' + 'NicknameTo=' + ANicknameTo);
  output_to_window('   ' + 'AMessage=' + AMessage);
end;

{******************************************************************************}

I'm mearly using output_to_window to add the string to memo field so I cant
see why

yeh NZ                               gets clipped to              ye

and Lord Of The Rings        gets clipped to             an


hi jomm                               gets clipped to                h


Thanks

    Frank -I Love Delphi -Bishop

Replies:

www.cryer.info
Managed Newsgroup Archive