From 5fc17959713011884ce7023b53e3d62931f7e877 Mon Sep 17 00:00:00 2001 From: terminaldweller Date: Mon, 4 Nov 2024 14:06:58 -0500 Subject: fixed the wrong condition --- utils.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'utils.go') diff --git a/utils.go b/utils.go index 81c2f70..e09456e 100644 --- a/utils.go +++ b/utils.go @@ -3,7 +3,7 @@ package main import "github.com/lrstanley/girc" func IrcJoin(irc *girc.Client, channel []string) { - if len(channel) >= 0 && channel[0] == "" { + if len(channel) > 1 && channel[1] != "" { irc.Cmd.JoinKey(channel[0], channel[1]) } else { irc.Cmd.Join(channel[0]) -- cgit v1.2.3