aatxe / irc

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

strip IRC colors (bold, underline, etc.) #130

Closed freddyb closed 6 years ago

freddyb commented 6 years ago

I would like to implement a utility function that strips IRC colors. Where would you suggest this to be implemented?

aatxe commented 6 years ago

Good idea! I'm sure this would be useful for others as well. I would probably implement it similar to the way ChannelExt is implemented. That is, we could provide an extension trait for String that adds something like strip_irc_formatting which does what you suggest.