5
0
mirror of https://github.com/cwinfo/matterbridge.git synced 2024-11-14 03:50:26 +00:00

Be less lossy when throttling IRC messages (#1004)

Note that msg.Text and chucking it through a chan is OK: https://play.golang.org/p/MTfT3YSsgPX
This commit is contained in:
Qais Patankar 2020-02-09 21:10:18 +00:00 committed by GitHub
parent c91bfd08d8
commit 8ae5917659
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -167,12 +167,8 @@ func (b *Birc) Send(msg config.Message) (string, error) {
return "", nil return "", nil
} }
b.Local <- config.Message{ msg.Text = msgLines[i]
Text: msgLines[i], b.Local <- msg
Username: msg.Username,
Channel: msg.Channel,
Event: msg.Event,
}
} }
return "", nil return "", nil
} }