aatxe / irc

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

Fix stringification of command suffixes with a leading colon #232

Closed maugier closed 3 years ago

maugier commented 3 years ago

Hello,

irc-proto tries to canonicalize command suffixes by only inserting a leading colon when required.

However, it fails to do so in one corner case (when the suffix itself starts with a colon), causing the leading colon to be gobbled up. This fixes the corner case.

Cheers,

aatxe commented 3 years ago

Ah, this is a nice catch. Thank you! 😄