Thumbnail

rani/matterbridge.git

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

commit 4e5127b3379d0b9382392265c151d7f3180b1d1e Author: Wim <wim@42.be> Date: Sat Oct 01 20:07:59 2016 +0000 Add more irc debug on connect (when debugging enabled) diff --git a/bridge/irc/irc.go b/bridge/irc/irc.go index c6ef70e..833fd56 100644 --- a/bridge/irc/irc.go +++ b/bridge/irc/irc.go @@ -526 +529 @@ func (b *Birc) Command(msg *config.Message) string {  func (b *Birc) Connect() error {   flog.Infof("Connecting %s", b.Config.Server)   i := irc.IRC(b.Config.Nick, b.Config.Nick) + if log.GetLevel() == log.DebugLevel { + i.Debug = true + }   i.UseTLS = b.Config.UseTLS   i.UseSASL = b.Config.UseSASL   i.SASLLogin = b.Config.NickServNick @@ -666 +697 @@ func (b *Birc) Connect() error {   return err   }   flog.Info("Connection succeeded") + i.Debug = false   b.i = i   return nil  }