Fix IRC analyzer supplying wrong type to irc_dcc_message event.

And other IRC policy tweaks.
This commit is contained in:
Jon Siwek 2011-07-20 13:19:44 -05:00
parent a73ef6f0e1
commit 063ad9a103
3 changed files with 31 additions and 11 deletions

View file

@ -668,9 +668,9 @@ void IRC_Analyzer::DeliverStream(int length, const u_char* line, bool orig)
vl->append(new Val(atoi(parts[4].c_str()), TYPE_COUNT));
if ( parts.size() >= 6 )
vl->append(new Val(atoi(parts[5].c_str()),
TYPE_INT));
TYPE_COUNT));
else
vl->append(new Val(0, TYPE_INT));
vl->append(new Val(0, TYPE_COUNT));
ConnectionEvent(irc_dcc_message, vl);
}