diff options
author | msglm <msglm@techchud.xyz> | 2023-10-27 07:08:25 -0500 |
---|---|---|
committer | msglm <msglm@techchud.xyz> | 2023-10-27 07:08:25 -0500 |
commit | 032a7e0c1188d3507b8d9a9571f2446a43cf775b (patch) | |
tree | 2bd38c01bc7761a6195e426082ce7191ebc765a1 /bridge/config/config.go | |
parent | 56e7bd01ca09ad52b0c4f48f146a20a4f1b78696 (diff) | |
download | matterbridge-msglm-032a7e0c1188d3507b8d9a9571f2446a43cf775b.tar.gz matterbridge-msglm-032a7e0c1188d3507b8d9a9571f2446a43cf775b.tar.bz2 matterbridge-msglm-032a7e0c1188d3507b8d9a9571f2446a43cf775b.zip |
apply https://github.com/42wim/matterbridge/pull/1864v1.26.0+0.1.0
Diffstat (limited to 'bridge/config/config.go')
-rw-r--r-- | bridge/config/config.go | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/bridge/config/config.go b/bridge/config/config.go index 18c60920..a6cbc61a 100644 --- a/bridge/config/config.go +++ b/bridge/config/config.go @@ -32,6 +32,7 @@ const ( const ParentIDNotFound = "msg-parent-not-found" +//nolint: tagliatelle type Message struct { Text string `json:"text"` Channel string `json:"channel"` @@ -146,11 +147,15 @@ type Protocol struct { ReplaceNicks [][]string // all protocols RemoteNickFormat string // all protocols RunCommands []string // IRC + UseAppService bool // matrix + AppServiceHost string // matrix + AppServicePort uint16 // matrix + AppServiceConfigPath string // matrix Server string // IRC,mattermost,XMPP,discord,matrix SessionFile string // msteams,whatsapp ShowJoinPart bool // all protocols ShowTopicChange bool // slack - ShowUserTyping bool // slack + ShowUserTyping bool // discord, matrix, slack ShowEmbeds bool // discord SkipTLSVerify bool // IRC, mattermost SkipVersionCheck bool // mattermost @@ -269,7 +274,8 @@ func NewConfig(rootLogger *logrus.Logger, cfgfile string) Config { cfgtype := detectConfigType(cfgfile) mycfg := newConfigFromString(logger, input, cfgtype) if mycfg.cv.General.LogFile != "" { - logfile, err := os.OpenFile(mycfg.cv.General.LogFile, os.O_CREATE|os.O_WRONLY|os.O_APPEND, 0600) + //nolint:nosnakecase + logfile, err := os.OpenFile(mycfg.cv.General.LogFile, os.O_CREATE|os.O_WRONLY|os.O_APPEND, 0o600) if err == nil { logger.Info("Opening log file ", mycfg.cv.General.LogFile) rootLogger.Out = logfile |