diff options
author | terminaldweller <devi@terminaldweller.com> | 2024-11-04 18:43:06 +0000 |
---|---|---|
committer | terminaldweller <devi@terminaldweller.com> | 2024-11-04 18:43:06 +0000 |
commit | db0110393f70987c9b87643594d18df935ef91d5 (patch) | |
tree | b61219f1d4238f4b5ad1d3d2b4d8d611115a0f11 /utils.go | |
parent | added openrouter as a provider (diff) | |
download | milla-db0110393f70987c9b87643594d18df935ef91d5.tar.gz milla-db0110393f70987c9b87643594d18df935ef91d5.zip |
added the ability to use channels with password, fixes 35
Diffstat (limited to '')
-rw-r--r-- | utils.go | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/utils.go b/utils.go new file mode 100644 index 0000000..81c2f70 --- /dev/null +++ b/utils.go @@ -0,0 +1,11 @@ +package main + +import "github.com/lrstanley/girc" + +func IrcJoin(irc *girc.Client, channel []string) { + if len(channel) >= 0 && channel[0] == "" { + irc.Cmd.JoinKey(channel[0], channel[1]) + } else { + irc.Cmd.Join(channel[0]) + } +} |