如何在Delphi中使用TidIRC接收消息? [英] How to receive a message with TidIRC in Delphi?

查看:95
本文介绍了如何在Delphi中使用TidIRC接收消息?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

到目前为止,我有以下代码:

I have the following code so far:

procedure TForm1.FormCreate(Sender: TObject);
begin
FIRC.Host:= '192.168.1.48';
FIRC.Port := 61289;
FIRC.Username:= 'test';
FIRC.Nickname:= 'Test';
FIRC.RealName:= 'TEst';
FIRC.Connect;
FIRC.Join('#Test');
end;

它可以很好地连接,但是我无法在Google上找到如何在频道上实际接收消息的方法.该怎么办?

And it will connect fine, but I cannot find on google how to actually receive a message on the channel. How can that be done?

推荐答案

TIdIRC具有OnPrivateMessageOnNotice事件(在许多其他事件中).

TIdIRC has OnPrivateMessage and OnNotice events (amongst many other events).

这篇关于如何在Delphi中使用TidIRC接收消息?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆