diff options
author | Wim <wim@42.be> | 2018-02-22 18:23:22 +0100 |
---|---|---|
committer | Wim <wim@42.be> | 2018-02-22 18:23:22 +0100 |
commit | 8622656005b667280515ec2b1514eba325573622 (patch) | |
tree | ff195a8cefe256da432593ea707a93a543351549 | |
parent | 52237fadb690282dea068612e1e83539b0fe31e2 (diff) | |
download | matterbridge-msglm-8622656005b667280515ec2b1514eba325573622.tar.gz matterbridge-msglm-8622656005b667280515ec2b1514eba325573622.tar.bz2 matterbridge-msglm-8622656005b667280515ec2b1514eba325573622.zip |
Add more debug for events (irc)
-rw-r--r-- | bridge/irc/irc.go | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/bridge/irc/irc.go b/bridge/irc/irc.go index 958eb6c1..027aa844 100644 --- a/bridge/irc/irc.go +++ b/bridge/irc/irc.go @@ -290,7 +290,9 @@ 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) |