mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 14:48:21 +00:00
irc: Check parts.size() before removing the nick
...also, don't remove the nick twice.
This commit is contained in:
parent
ef81116278
commit
6b6bd7e9f6
1 changed files with 1 additions and 3 deletions
|
@ -426,9 +426,6 @@ void IRC_Analyzer::DeliverStream(int length, const u_char* line, bool orig)
|
|||
break;
|
||||
|
||||
vector<string> parts = SplitWords(params, ' ');
|
||||
|
||||
// Remove nick name.
|
||||
parts.erase(parts.begin());
|
||||
if ( parts.size() < 2 )
|
||||
{
|
||||
Weird("irc_invalid_whois_channel_line");
|
||||
|
@ -436,6 +433,7 @@ void IRC_Analyzer::DeliverStream(int length, const u_char* line, bool orig)
|
|||
}
|
||||
|
||||
string nick = parts[0];
|
||||
// Remove nick name.
|
||||
parts.erase(parts.begin());
|
||||
|
||||
if ( parts.size() > 0 && parts[0][0] == ':' )
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue