mirror of
https://github.com/zeek/zeek.git
synced 2025-10-06 16:48:19 +00:00
Correct irc_privmsg_message handling.
Due to a logic bug, once an "irc_privmsg_message" event handler is created, *all* IRC events were routed down the code path, generally creating a Weird("irc_invalid_privmsg_message_format") event and terminating the inspection.
This commit is contained in:
parent
bf52f986c2
commit
e3d196ed7d
1 changed files with 1 additions and 1 deletions
|
@ -601,7 +601,7 @@ void IRC_Analyzer::DeliverStream(int length, const u_char* line, bool orig)
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
else if ( irc_privmsg_message || (irc_dcc_message && command == "PRIVMSG") )
|
else if ( ( irc_privmsg_message || irc_dcc_message ) && command == "PRIVMSG")
|
||||||
{
|
{
|
||||||
unsigned int pos = params.find(' ');
|
unsigned int pos = params.find(' ');
|
||||||
if ( pos >= params.size() )
|
if ( pos >= params.size() )
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue