Change duplicate error message for missing irc.nick.
This commit is contained in:
parent
baefdc5d0b
commit
066134263e
2
irc.go
2
irc.go
@ -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'")
|
||||||
|
Loading…
Reference in New Issue
Block a user