summaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
Diffstat (limited to 'main.go')
-rw-r--r--main.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/main.go b/main.go
index eb3cc69..82509bd 100644
--- a/main.go
+++ b/main.go
@@ -93,9 +93,9 @@ func privmsg(room string) irc.HandlerFunc {
func main() {
var (
node = flag.String("node", "irc.freenode.org", "IRC Server")
- ssl = flag.Bool("ssl", false, "Use SSL")
- room = flag.String("room", "#lor", "IRC Channel")
- name = flag.String("name", "dim13", "Bots Name")
+ notls = flag.Bool("nossl", false, "disable TLS")
+ room = flag.String("room", "#lor", "IRC channel")
+ name = flag.String("name", "dim13", "bots name")
version = flag.Bool("version", false, "display version and exit")
)
flag.Parse()
@@ -107,7 +107,7 @@ func main() {
conf := irc.NewConfig(*name)
conf.Server = *node
- conf.SSL = *ssl
+ conf.SSL = !*notls
conn := irc.Client(conf)
done := make(chan struct{})