We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent db01103 commit 5fc1795Copy full SHA for 5fc1795
utils.go
@@ -3,7 +3,7 @@ package main
3
import "github.com/lrstanley/girc"
4
5
func IrcJoin(irc *girc.Client, channel []string) {
6
- if len(channel) >= 0 && channel[0] == "" {
+ if len(channel) > 1 && channel[1] != "" {
7
irc.Cmd.JoinKey(channel[0], channel[1])
8
} else {
9
irc.Cmd.Join(channel[0])
0 commit comments