Change duplicate error message for missing irc.nick.

This commit is contained in:
Ant Zucaro 2014-10-04 08:10:14 -04:00
parent baefdc5d0b
commit 066134263e

2
irc.go
View File

@ -341,7 +341,7 @@ func (irc *Connection) Connect(server string) error {
return errors.New("'Log' points to nil") return errors.New("'Log' points to nil")
} }
if len(irc.nick) == 0 { if len(irc.nick) == 0 {
return errors.New("empty 'user'") return errors.New("empty 'nick'")
} }
if len(irc.user) == 0 { if len(irc.user) == 0 {
return errors.New("empty 'user'") return errors.New("empty 'user'")