Use default nick if none specified (irc). Fixes #785

This commit is contained in:
Wim 2019-04-05 00:17:38 +02:00
parent 01d0a9f412
commit cdf33e5748
1 changed files with 1 additions and 1 deletions

View File

@ -231,7 +231,7 @@ func (b *Birc) getClient() (*girc.Client, error) {
// fix strict user handling of girc
user := b.GetString("Nick")
for !girc.IsValidUser(user) {
if len(user) == 1 {
if len(user) == 1 || len(user) == 0 {
user = "matterbridge"
break
}