mirror of
https://github.com/42wim/matterbridge.git
synced 2024-12-20 10:02:34 +01:00
Use default nick if none specified (irc). Fixes #785
This commit is contained in:
parent
01d0a9f412
commit
cdf33e5748
@ -231,7 +231,7 @@ func (b *Birc) getClient() (*girc.Client, error) {
|
|||||||
// fix strict user handling of girc
|
// fix strict user handling of girc
|
||||||
user := b.GetString("Nick")
|
user := b.GetString("Nick")
|
||||||
for !girc.IsValidUser(user) {
|
for !girc.IsValidUser(user) {
|
||||||
if len(user) == 1 {
|
if len(user) == 1 || len(user) == 0 {
|
||||||
user = "matterbridge"
|
user = "matterbridge"
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user