Thumbnail

rani/matterbridge.git

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

commit 52d00f433db0f07de7af854b4e0be708931037e7 Author: Wim <wim@42.be> Date: Thu Feb 22 18:23:22 2018 +0000 Add more debug for events (irc) diff --git a/bridge/irc/irc.go b/bridge/irc/irc.go index 958eb6c..027aa84 100644 --- a/bridge/irc/irc.go +++ b/bridge/irc/irc.go @@ -2907 +2909 @@ func (b *Birc) handleJoinPart(client *girc.Client, event girc.Event) {   }   if event.Source.Name != b.Nick {   flog.Debugf("Sending JOIN_LEAVE event from %s to gateway", b.Account) - b.Remote <- config.Message{Username: "system", Text: event.Source.Name + " " + strings.ToLower(event.Command) + "s", Channel: channel, Account: b.Account, Event: config.EVENT_JOIN_LEAVE} + msg := config.Message{Username: "system", Text: event.Source.Name + " " + strings.ToLower(event.Command) + "s", Channel: channel, Account: b.Account, Event: config.EVENT_JOIN_LEAVE} + flog.Debugf("Message is %#v", msg) + b.Remote <- msg   return   }   flog.Debugf("handle %#v", event)