Newsgroups : Borland : borland.public.delphi.internet.winsock : 2008 Mar : Re: TIdCMTCPServer own messages
| Subject: | Re: TIdCMTCPServer own messages |
| Posted by: | "Remy Lebeau (TeamB)" (no.spam@no.spam.com) |
| Date: | Tue, 18 Mar 2008 09:49:18 |
"Moore" <moore@hotmail.com> wrote in message
news:47df9452$1@newsgroups.borland.com...
> How to impede TIdCMTCPServer from sending its
> own messages like 200 ok, 200 welcome,
One thing you can do is inside the OnCommand event handler of each
CommandHandlers item, you can set the TIdCommand.PerformReply property to
False upon entry.
> i have put the corresponding replies to empty string and
> code but it stills sends them to the client..
Are you doing that at design-time or run-time, though? It has to be done at
run-time, in order to override the hard-coded defaults from the construction
of the TIdReply objects.
For future reference, there is a new PerformReplies property being added to
the TIdCommandHandlers class. TIdIRC needed the same functionality that you
are asking for now. It has not been checked into main codebase yet, but it
is already in the pipeline.
Gambit
none