1
0
Fork 0
mirror of https://github.com/fluffle/goirc synced 2025-05-21 06:53:21 +00:00

Sometimes the Nick is created but not filled in

This commit is contained in:
raylu 2010-10-26 18:43:09 -04:00
parent 2c1e5641ab
commit 78d5511cf8

View file

@ -20,6 +20,9 @@ func readAuth() {
}
func user(nick *irc.Nick) string {
if nick.Ident == "" || nick.Host == "" {
return ""
}
if nick.Ident[0] == '~' {
return nick.Ident[1:] + "@" + nick.Host
}