mirror of
https://github.com/cwinfo/matterbridge.git
synced 2025-07-11 10:46:27 +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:
@ -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
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user