Thumbnail

rani/matterbridge.git

Clone URL: https://git.buni.party/rani/matterbridge.git

commit ef6c6a9b031c45a70f5f6fa542b91606c6bbf278 Author: Wim <wim@42.be> Date: Sat Jun 17 17:58:56 2017 +0000 Do not relay join/part of ourselves (irc). Closes #190 diff --git a/bridge/irc/irc.go b/bridge/irc/irc.go index 8bb8896..2e94d30 100644 --- a/bridge/irc/irc.go +++ b/bridge/irc/irc.go @@ -1928 +19211 @@ func (b *Birc) handleJoinPart(event *irc.Event) {   return   }   } - flog.Debugf("Sending JOIN_LEAVE event from %s to gateway", b.Account) - b.Remote <- config.Message{Username: "system", Text: event.Nick + " " + strings.ToLower(event.Code) + "s", Channel: channel, Account: b.Account, Event: config.EVENT_JOIN_LEAVE} + if event.Nick != b.Nick { + flog.Debugf("Sending JOIN_LEAVE event from %s to gateway", b.Account) + b.Remote <- config.Message{Username: "system", Text: event.Nick + " " + strings.ToLower(event.Code) + "s", Channel: channel, Account: b.Account, Event: config.EVENT_JOIN_LEAVE} + return + }   flog.Debugf("handle %#v", event)  }