Skip to content

Commit 1a201f3

Browse files
committed
fix: The OnISupport hook is fixed
1 parent b64bdfd commit 1a201f3

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

src/bot/irclogbot.bot.pas

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ procedure TIRCLogBot.OnPrivateMessage(ASender: TIdContext; const ANickname,
213213

214214
procedure TIRCLogBot.OnISupport(ASender: TIdContext; AParameters: TStrings);
215215
begin
216-
debug('I Support: %s', [AParameters]);
216+
debug('I Support: %s', [AParameters.Text]);
217217
end;
218218

219219
procedure TIRCLogBot.OnStatus(ASender: TObject; const AStatus: TIdStatus;
@@ -366,9 +366,9 @@ constructor TIRCLogBot.Create(const AConfig: TBotConfig);
366366
FIRC.OnJoin:= @OnJoin;
367367
FIRC.OnNotice:= @OnNotice;
368368
FIRC.OnPrivateMessage:= @OnPrivateMessage;
369-
//FIRC.OnISupport:= @OnISupport;
370-
//FIRC.OnStatus:= @OnStatus;
371-
//FIRC.OnRaw:= @OnRaw;
369+
FIRC.OnISupport:= @OnISupport;
370+
FIRC.OnStatus:= @OnStatus;
371+
FIRC.OnRaw:= @OnRaw;
372372
//FIRC.OnBeforeCommandHandler:= @OnBeforeCommandHandler;
373373
//FIRC.OnAfterCommandHandler:= @OnAfterCommandHandler;
374374

src/paslogbot.lpr

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ procedure SetupSignalHandlers;
6060
act.sa_flags:= 0;
6161

6262
// Set up signal handlers
63+
//fpSignal(SIGTERM, @SignalHandler); // Need to investigate the params for this
6364
fpSigAction(SIGTERM, @act, nil);
6465
fpSigAction(SIGINT, @act, nil);
6566
fpSigAction(SIGHUP, @act, nil);

0 commit comments

Comments
 (0)