aatxe / irc

the irc crate – usable, async IRC for Rust
Mozilla Public License 2.0
530 stars 97 forks source link

Crash on dataless ctcp PING #68

Closed TheMightyBuzzard closed 7 years ago

TheMightyBuzzard commented 7 years ago

To reproduce: /ctcp botnick PING

The cause is here: https://github.com/aatxe/irc/blob/master/src/client/server/mod.rs#L472

You assume the vector "tokens" will have in existence a index of 1 but with no data in the PING, it doesn't.