aatxe / irc

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

Trailing parameters should be treated the same as other parameters. #172

Open aatxe opened 5 years ago

aatxe commented 5 years ago

As pointed out on the IRCv3 channel, the library shouldn’t present a difference between trailing and middle parameters to users. This mistake has persisted for a long time, but correcting it should actually simplify a lot of code (though the change will be breaking).

After extracting the parameter list, all parameters are equal whether matched by \<middle> or \<trailing>.

Source: https://tools.ietf.org/html/rfc2812#section-2.3.1