easybridge/connector/irc/config.go

52 lines
1 KiB
Go
Raw Normal View History

package irc
import (
. "git.deuxfleurs.fr/Deuxfleurs/easybridge/connector"
)
2020-02-28 09:34:22 +00:00
const IRC_PROTOCOL = "IRC"
func init() {
2020-02-28 09:34:22 +00:00
Register(IRC_PROTOCOL, Protocol{
2020-02-28 09:18:47 +00:00
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",
},
2020-05-04 16:46:25 +00:00
&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,
},
},
})
}