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:
Mark Taylor 2016-01-27 14:54:48 -05:00
parent bf52f986c2
commit e3d196ed7d

View file

@ -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() )