Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
TIdIRC Bug
#11
(08-18-2020, 03:08 PM)fearcry Wrote: i did placed a TIdLogFile as an Intercept, the Stats-Section looks like this:

I see absolutely nothing wrong with that log, so the problem has to be elsewhere.

Do you have a handler assigned to the TIdIRC.OnServerStatsReceived event?  If so, are you trying to access the handler's AStatus parameter?  That event is triggered when the 219 response is received, but its AStatus parameter is always nil since handling of the 210 responses is not implemented at this time (I told you that in my very 1st reply to this discussion on July 31st - have you had me on a wild goose chase for 2½ weeks now?).

Code:
  //RPL_ENDOFSTATS
  LCommandHandler := CommandHandlers.Add;
  LCommandHandler.Command := '219'; {do not localize}
  LCommandHandler.OnCommand := CommandENDOFSTATS;

...

procedure TIdIRC.CommandENDOFSTATS(ASender: TIdCommand);
begin
  if Assigned(FOnSvrStats) then begin
    OnServerStatsReceived(ASender.Context, nil); // TODO
  end;
end;

So, there is really no point in sending a STATS command since TIdIRC is not going to give you back any meaningful stats data, unless you parse the 210 responses manually, either in the OnRaw event, or by adding your own handler to the TIdIRC.CommandHandlers collection.

Reply


Messages In This Thread
TIdIRC Bug - by fearcry - 07-31-2020, 07:17 AM
RE: TIdIRC Bug - by rlebeau - 07-31-2020, 05:25 PM
RE: TIdIRC Bug - by fearcry - 07-31-2020, 10:41 PM
RE: TIdIRC Bug - by rlebeau - 08-01-2020, 01:51 AM
RE: TIdIRC Bug - by fearcry - 08-01-2020, 11:50 AM
RE: TIdIRC Bug - by rlebeau - 08-03-2020, 07:21 PM
RE: TIdIRC Bug - by fearcry - 08-04-2020, 08:38 PM
RE: TIdIRC Bug - by rlebeau - 08-04-2020, 09:02 PM
RE: TIdIRC Bug - by fearcry - 08-18-2020, 03:08 PM
RE: TIdIRC Bug - by rlebeau - 08-18-2020, 08:34 PM
RE: TIdIRC Bug - by fearcry - 08-01-2020, 01:01 PM
RE: TIdIRC Bug - by fearcry - 08-19-2020, 04:10 PM

Forum Jump:


Users browsing this thread: 2 Guest(s)