mirror of https://github.com/fluffle/goirc
Sometimes the Nick is created but not filled in
This commit is contained in:
parent
2c1e5641ab
commit
78d5511cf8
3
auth.go
3
auth.go
|
@ -20,6 +20,9 @@ func readAuth() {
|
||||||
}
|
}
|
||||||
|
|
||||||
func user(nick *irc.Nick) string {
|
func user(nick *irc.Nick) string {
|
||||||
|
if nick.Ident == "" || nick.Host == "" {
|
||||||
|
return ""
|
||||||
|
}
|
||||||
if nick.Ident[0] == '~' {
|
if nick.Ident[0] == '~' {
|
||||||
return nick.Ident[1:] + "@" + nick.Host
|
return nick.Ident[1:] + "@" + nick.Host
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue