diff options
author | Wim <wim@42.be> | 2019-02-17 22:43:04 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-02-17 22:43:04 +0100 |
commit | d76a04bd0a96772cec5b279aaa1ee45235adc707 (patch) | |
tree | 1e74cb1f6858aee185c170b40eab52b697f910d9 /bridge/irc | |
parent | a8fe54a78d869ce4185ff8f25e90fd87035002ec (diff) | |
download | matterbridge-msglm-d76a04bd0a96772cec5b279aaa1ee45235adc707.tar.gz matterbridge-msglm-d76a04bd0a96772cec5b279aaa1ee45235adc707.tar.bz2 matterbridge-msglm-d76a04bd0a96772cec5b279aaa1ee45235adc707.zip |
Support quits from irc correctly. Fixes #722 (#724)
Diffstat (limited to 'bridge/irc')
-rw-r--r-- | bridge/irc/handlers.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/bridge/irc/handlers.go b/bridge/irc/handlers.go index ce4f0445..a5df2d53 100644 --- a/bridge/irc/handlers.go +++ b/bridge/irc/handlers.go @@ -92,6 +92,10 @@ func (b *Birc) handleJoinPart(client *girc.Client, event girc.Event) { return } b.Log.Debugf("<= Sending JOIN_LEAVE event from %s to gateway", b.Account) + // QUIT isn't channel bound, happens for all channels on the bridge + if event.Command == "QUIT" { + channel = "" + } msg := config.Message{Username: "system", Text: event.Source.Name + " " + strings.ToLower(event.Command) + "s", Channel: channel, Account: b.Account, Event: config.EventJoinLeave} b.Log.Debugf("<= Message is %#v", msg) b.Remote <- msg |