4
0
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:
Wim
2017-07-25 20:11:52 +02:00
parent 3527e09bc5
commit 83ef61287e
8 changed files with 467 additions and 132 deletions

View File

@@ -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)
}