diff options
author | Wim <wim@42.be> | 2016-10-01 20:07:59 +0200 |
---|---|---|
committer | Wim <wim@42.be> | 2016-10-01 20:07:59 +0200 |
commit | e52b040b9c4d3346f29817f63295a95d0d1ebd15 (patch) | |
tree | 2c64533b24a05971e21d282e5a1ecd171d93cfe9 /bridge/irc/irc.go | |
parent | 1accee1653e35e50c4f68124d56ce5edc2c896c4 (diff) | |
download | matterbridge-msglm-e52b040b9c4d3346f29817f63295a95d0d1ebd15.tar.gz matterbridge-msglm-e52b040b9c4d3346f29817f63295a95d0d1ebd15.tar.bz2 matterbridge-msglm-e52b040b9c4d3346f29817f63295a95d0d1ebd15.zip |
Add more irc debug on connect (when debugging enabled)
Diffstat (limited to 'bridge/irc/irc.go')
-rw-r--r-- | bridge/irc/irc.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/bridge/irc/irc.go b/bridge/irc/irc.go index c6ef70e7..833fd569 100644 --- a/bridge/irc/irc.go +++ b/bridge/irc/irc.go @@ -52,6 +52,9 @@ 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 @@ -66,6 +69,7 @@ func (b *Birc) Connect() error { return err } flog.Info("Connection succeeded") + i.Debug = false b.i = i return nil } |