Add irc_dcc_send_ack event and fix missing fields

This commit is contained in:
Fupeng Zhao 2023-04-13 14:59:27 +00:00 committed by mAsk°
parent b739bdbbfb
commit 161ffb4192
14 changed files with 172 additions and 102 deletions

View file

@ -9,14 +9,12 @@
@load base/protocols/conn
@load base/protocols/irc
# dcc mime types are irrelevant to this test, so filter it out
event zeek_init()
{
Log::remove_default_filter(IRC::LOG);
Log::add_filter(IRC::LOG, [$name="remove-mime", $exclude=set("dcc_mime_type")]);
}
event irc_names_info(c: connection, is_orig: bool, c_type: string, channel: string, users: string_set)
{
print "irc_names_info", channel, users;
}
event irc_dcc_send_ack(c: connection, bytes_received: count)
{
print "irc_dcc_send_ack", bytes_received;
}