aatxe / irc

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

irc-proto: allow modes with no prefix #252

Closed martinetd closed 1 year ago

martinetd commented 1 year ago

irc clients can query the details of some modes (e.g. request list of banned users) by sending a message with no plus or minus prefix, e.g. "MODE #chan b"

Not sure why this hadn't bitten me earlier, but now apparently the Framed tokio codec stream I'm reading stops processing data on first error so even if I could just ignore this it effectively disconnects my client, making channels rather painful.

Happy to rename NoPrefix to something else, from what I could see it's a query so Query? But Plus and Minus are rather litteral and not Add / Remove so NoPrefix is probably just as good.

Thanks!

martinetd commented 1 year ago

Thanks!