diff options
author | Wim <wim@42.be> | 2017-07-25 20:11:52 +0200 |
---|---|---|
committer | Wim <wim@42.be> | 2017-07-25 20:11:52 +0200 |
commit | 83ef61287e34aaf35e52eb5e18b87364294144da (patch) | |
tree | 138c3ec9738ec0ad8169887d247d7afdb0a4c274 /bridge | |
parent | 3527e09bc5a6d4704f1445d35f90b33e859c23c2 (diff) | |
download | matterbridge-msglm-83ef61287e34aaf35e52eb5e18b87364294144da.tar.gz matterbridge-msglm-83ef61287e34aaf35e52eb5e18b87364294144da.tar.bz2 matterbridge-msglm-83ef61287e34aaf35e52eb5e18b87364294144da.zip |
Refactor. Add tests
Diffstat (limited to 'bridge')
-rw-r--r-- | bridge/config/config.go | 1 | ||||
-rw-r--r-- | bridge/irc/irc.go | 3 |
2 files changed, 0 insertions, 4 deletions
diff --git a/bridge/config/config.go b/bridge/config/config.go index 2bac2e7d..b390c72b 100644 --- a/bridge/config/config.go +++ b/bridge/config/config.go @@ -33,7 +33,6 @@ type ChannelInfo struct { Account string Direction string ID string - GID map[string]bool SameChannel map[string]bool Options ChannelOptions } diff --git a/bridge/irc/irc.go b/bridge/irc/irc.go index a5f047d0..dea2a3db 100644 --- a/bridge/irc/irc.go +++ b/bridge/irc/irc.go @@ -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) } |