From 78d5511cf8c820c3d4075ff17a2218ad2fd1c7cd Mon Sep 17 00:00:00 2001 From: raylu Date: Tue, 26 Oct 2010 18:43:09 -0400 Subject: [PATCH] Sometimes the Nick is created but not filled in --- auth.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/auth.go b/auth.go index b997cf1..125cda4 100644 --- a/auth.go +++ b/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 }