Skip to content

Commit

Permalink
Reduce connection timeout to a more sensible number
Browse files Browse the repository at this point in the history
  • Loading branch information
russss committed Jul 1, 2019
1 parent a439bf5 commit e6ab927
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions irc.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,15 @@ import (
"github.com/irccloud/go-ircevent"
"github.com/spf13/viper"
"strings"
"time"
)

func (i *IRCCat) connectIRC(debug bool) error {
irccon := irc.IRC(viper.GetString("irc.nick"), viper.GetString("irc.realname"))
i.irc = irccon

irccon.Debug = debug
irccon.Timeout = time.Second * 15
irccon.RequestCaps = []string{"away-notify", "account-notify", "draft/message-tags-0.2"}
irccon.UseTLS = viper.GetBool("irc.tls")

Expand Down

0 comments on commit e6ab927

Please sign in to comment.