diff options
Diffstat (limited to 'bridge')
-rw-r--r-- | bridge/config/config.go | 22 |
1 files changed, 15 insertions, 7 deletions
diff --git a/bridge/config/config.go b/bridge/config/config.go index 290108af..7d4b0cd1 100644 --- a/bridge/config/config.go +++ b/bridge/config/config.go @@ -56,14 +56,22 @@ type Gateway struct { Out []Bridge } +type SameChannelGateway struct { + Name string + Enable bool + Channels []string + Accounts []string +} + type Config struct { - IRC map[string]Protocol - Mattermost map[string]Protocol - Slack map[string]Protocol - Gitter map[string]Protocol - Xmpp map[string]Protocol - Discord map[string]Protocol - Gateway []Gateway + IRC map[string]Protocol + Mattermost map[string]Protocol + Slack map[string]Protocol + Gitter map[string]Protocol + Xmpp map[string]Protocol + Discord map[string]Protocol + Gateway []Gateway + SameChannelGateway []SameChannelGateway } func NewConfig(cfgfile string) *Config { |