mirror of
https://github.com/cwinfo/matterbridge.git
synced 2024-11-22 21:50:28 +00:00
Relay messages starting with ! (irc). Closes #164
This commit is contained in:
parent
2e703472f1
commit
d300bb1735
@ -109,7 +109,6 @@ func (b *Birc) Send(msg config.Message) error {
|
|||||||
}
|
}
|
||||||
if strings.HasPrefix(msg.Text, "!") {
|
if strings.HasPrefix(msg.Text, "!") {
|
||||||
b.Command(&msg)
|
b.Command(&msg)
|
||||||
return nil
|
|
||||||
}
|
}
|
||||||
for _, text := range strings.Split(msg.Text, "\n") {
|
for _, text := range strings.Split(msg.Text, "\n") {
|
||||||
if len(b.Local) < b.Config.MessageQueue {
|
if len(b.Local) < b.Config.MessageQueue {
|
||||||
|
Loading…
Reference in New Issue
Block a user