From cdf33e5748c110e12097130bdb44637e3d14b229 Mon Sep 17 00:00:00 2001 From: Wim Date: Fri, 5 Apr 2019 00:17:38 +0200 Subject: Use default nick if none specified (irc). Fixes #785 --- bridge/irc/irc.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bridge/irc') diff --git a/bridge/irc/irc.go b/bridge/irc/irc.go index 4b7203c4..51842544 100644 --- a/bridge/irc/irc.go +++ b/bridge/irc/irc.go @@ -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 } -- cgit v1.2.3