mirror of
https://github.com/google/alertmanager-irc-relay.git
synced 2024-11-05 11:19:21 +01:00
fix config declaration typo
Signed-off-by: Luca Bigliardi <shammash@google.com>
This commit is contained in:
parent
a63bfa3aad
commit
cace8c91fe
@ -18,6 +18,8 @@ import (
|
||||
"gopkg.in/yaml.v2"
|
||||
"io/ioutil"
|
||||
"os"
|
||||
|
||||
"github.com/google/alertmanager-irc-relay/logging"
|
||||
)
|
||||
|
||||
const (
|
||||
@ -47,7 +49,7 @@ type Config struct {
|
||||
UsePrivmsg bool `yaml:"use_privmsg"`
|
||||
AlertBufferSize int `yaml:"alert_buffer_size"`
|
||||
|
||||
NickservIdentifyPatterns []string `yaml:nickserv_identify_patterns`
|
||||
NickservIdentifyPatterns []string `yaml:"nickserv_identify_patterns"`
|
||||
}
|
||||
|
||||
func LoadConfig(configFile string) (*Config, error) {
|
||||
@ -93,5 +95,8 @@ func LoadConfig(configFile string) (*Config, error) {
|
||||
}
|
||||
}
|
||||
|
||||
loadedConfig, _ := yaml.Marshal(config)
|
||||
logging.Debug("Loaded config:\n%s", loadedConfig)
|
||||
|
||||
return config, nil
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user