mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 14:48:21 +00:00
24 lines
584 B
Text
24 lines
584 B
Text
@load ./dcc-send.bro
|
|
@load base/utils/conn-ids
|
|
@load base/frameworks/file-analysis/main
|
|
|
|
module IRC;
|
|
|
|
export {
|
|
## Default file handle provider for IRC.
|
|
global get_file_handle: function(c: connection, is_orig: bool): string;
|
|
}
|
|
|
|
function get_file_handle(c: connection, is_orig: bool): string
|
|
{
|
|
if ( is_orig ) return "";
|
|
return cat(ANALYZER_IRC_DATA, " ", c$start_time, " ", id_string(c$id));
|
|
}
|
|
|
|
module GLOBAL;
|
|
|
|
event get_file_handle(tag: AnalyzerTag, c: connection, is_orig: bool)
|
|
{
|
|
if ( tag != ANALYZER_IRC_DATA ) return;
|
|
set_file_handle(IRC::get_file_handle(c, is_orig));
|
|
}
|