mirror of
https://github.com/42wim/matterbridge.git
synced 2024-11-21 18:22:00 -08:00
Add more irc debug on connect (when debugging enabled)
This commit is contained in:
parent
1accee1653
commit
e52b040b9c
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user