diff options
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 |