aboutsummaryrefslogtreecommitdiff
path: root/connector/irc/config.go
blob: b95ea251e8218bbb5227c05b3fcc17999382891e (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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
package irc

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

const IRC_PROTOCOL = "IRC"

func init() {
	Register(IRC_PROTOCOL, 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",
			},
			&ConfigEntry{
				Name:        "server_pass",
				Description: "Server password (authenticate with PASS command)",
				IsPassword:  true,
			},
			&ConfigEntry{
				Name:        "sasl_user",
				Description: "Username for SASL authentication",
			},
			&ConfigEntry{
				Name:        "sasl_pass",
				Description: "Password for SASL authentication",
				IsPassword:  true,
			},
		},
	})
}