mirror of
https://github.com/cwinfo/matterbridge.git
synced 2025-08-10 21:08:09 +00:00
Refactor. Add tests
This commit is contained in:
@@ -124,9 +124,6 @@ func (b *Birc) JoinChannel(channel string) error {
|
||||
|
||||
func (b *Birc) Send(msg config.Message) error {
|
||||
flog.Debugf("Receiving %#v", msg)
|
||||
if msg.Account == b.Account {
|
||||
return nil
|
||||
}
|
||||
if strings.HasPrefix(msg.Text, "!") {
|
||||
b.Command(&msg)
|
||||
}
|
||||
|
Reference in New Issue
Block a user