aatxe / irc

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

An error for when there are no valid nicks. #117

Closed pinkisemils closed 6 years ago

pinkisemils commented 6 years ago

Hiya, whilst developing with your library, I noticed that invalid nicks result in a panic. I'm fairly certain that this isn't the expected behaviour. Here's my attempt at fixing this. If you think there's a better way to handle it, I'm open for suggestions or plain better fixes.

aatxe commented 6 years ago

Ah, great catch! Thanks! This should've been done when I eliminated the panic when no nicknames were specified at all, but was overlooked. Cheers!