summaryrefslogtreecommitdiffstats
path: root/bridge
diff options
context:
space:
mode:
authorQais Patankar <qaisjp@gmail.com>2020-02-09 21:10:18 +0000
committerGitHub <noreply@github.com>2020-02-09 22:10:18 +0100
commit8ae59176596601278bf368b9fd2622e4fdf51794 (patch)
tree60e90de5d6f3cb6a5da2217900a83a23514a8e60 /bridge
parentc91bfd08d855d07eccf5319e8881c816edf598ea (diff)
downloadmatterbridge-msglm-8ae59176596601278bf368b9fd2622e4fdf51794.tar.gz
matterbridge-msglm-8ae59176596601278bf368b9fd2622e4fdf51794.tar.bz2
matterbridge-msglm-8ae59176596601278bf368b9fd2622e4fdf51794.zip
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
Diffstat (limited to 'bridge')
-rw-r--r--bridge/irc/irc.go8
1 files changed, 2 insertions, 6 deletions
diff --git a/bridge/irc/irc.go b/bridge/irc/irc.go
index ddc90b57..bae9aef0 100644
--- a/bridge/irc/irc.go
+++ b/bridge/irc/irc.go
@@ -167,12 +167,8 @@ func (b *Birc) Send(msg config.Message) (string, error) {
return "", nil
}
- b.Local <- config.Message{
- Text: msgLines[i],
- Username: msg.Username,
- Channel: msg.Channel,
- Event: msg.Event,
- }
+ msg.Text = msgLines[i]
+ b.Local <- msg
}
return "", nil
}