From e36a4a55817726a0917578a26266bd23056d68de Mon Sep 17 00:00:00 2001 From: Russ Garrett Date: Sun, 12 May 2019 10:32:45 +0100 Subject: [PATCH] Reduce connection timeout to a more sensible number --- irc.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/irc.go b/irc.go index 673ab12..46296dd 100644 --- a/irc.go +++ b/irc.go @@ -6,6 +6,7 @@ import ( "github.com/irccloud/go-ircevent" "github.com/spf13/viper" "strings" + "time" ) func (i *IRCCat) connectIRC(debug bool) error { @@ -13,6 +14,7 @@ func (i *IRCCat) connectIRC(debug bool) error { 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")