diff options
Diffstat (limited to 'connector/irc')
-rw-r--r-- | connector/irc/config.go | 47 |
1 files changed, 25 insertions, 22 deletions
diff --git a/connector/irc/config.go b/connector/irc/config.go index 26d9a63..33469ed 100644 --- a/connector/irc/config.go +++ b/connector/irc/config.go @@ -5,28 +5,31 @@ import ( ) func init() { - Register("irc", 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", + 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", + }, }, }) } |