ergochat/irc-go

ParseUserhost sets the User of a UserHost the passed string when the string is not a mask

A-UNDERSCORE-D opened this issue · 1 comments

When calling ParseUserhost, for example, with "test", the resulting UserHost struct looks like this: UserHost{Nick: "", User: "test", Host: ""}. The parser tests have no checks for this, but RFC 1459 (see note 6) states that in this case the mask is just a nick.

This is now #57