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:
parent
2c1e5641ab
commit
78d5511cf8
1 changed files with 3 additions and 0 deletions
3
auth.go
3
auth.go
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue