diff options
Diffstat (limited to 'utils.go')
-rw-r--r-- | utils.go | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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]) |