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 May 12, 2019
1 parent 3db50f6 commit e36a4a5
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 e36a4a5

Please sign in to comment.