aboutsummaryrefslogtreecommitdiff
path: root/connector/irc/config.go
blob: 33469ed7fa3f509d9615b36e7e1b6240445f8c0d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
package irc

import (
	. "git.deuxfleurs.fr/Deuxfleurs/easybridge/connector"
)

func init() {
	Register("irc", Protocol{
		NewConnector: func() Connector { return &IRC{} },
		Schema: ConfigSchema{
			&ConfigEntry{
				Name:        "nick",
				Description: "Nickname",
				Required:    true,
			},
			&ConfigEntry{
				Name:        "server",
				Description: "Server",
				Required:    true,
			},
			&ConfigEntry{
				Name:        "port",
				Description: "Port",
				IsNumeric:   true,
				Default:     "6667",
			},
			&ConfigEntry{
				Name:        "ssl",
				Description: "Use SSL",
				IsBoolean:   true,
				Default:     "false",
			},
		},
	})
}