summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWim <wim@42.be>2019-04-05 00:17:38 +0200
committerWim <wim@42.be>2019-04-05 00:17:46 +0200
commitcdf33e5748c110e12097130bdb44637e3d14b229 (patch)
tree1403115e773890753fc05ffc1b95c6ef444a78b4
parent01d0a9f412d36562cc3accf6f7c0547c796b34b7 (diff)
downloadmatterbridge-msglm-cdf33e5748c110e12097130bdb44637e3d14b229.tar.gz
matterbridge-msglm-cdf33e5748c110e12097130bdb44637e3d14b229.tar.bz2
matterbridge-msglm-cdf33e5748c110e12097130bdb44637e3d14b229.zip
Use default nick if none specified (irc). Fixes #785
-rw-r--r--bridge/irc/irc.go2
1 files changed, 1 insertions, 1 deletions
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
}