summaryrefslogtreecommitdiffstats
path: root/bridge/gitter/gitter.go
diff options
context:
space:
mode:
Diffstat (limited to 'bridge/gitter/gitter.go')
-rw-r--r--bridge/gitter/gitter.go20
1 files changed, 7 insertions, 13 deletions
diff --git a/bridge/gitter/gitter.go b/bridge/gitter/gitter.go
index 64b6344f..fce58c1f 100644
--- a/bridge/gitter/gitter.go
+++ b/bridge/gitter/gitter.go
@@ -9,13 +9,11 @@ import (
)
type Bgitter struct {
- c *gitter.Gitter
- Config *config.Protocol
- Remote chan config.Message
- Account string
- User *gitter.User
- Users []gitter.User
- Rooms []gitter.Room
+ c *gitter.Gitter
+ User *gitter.User
+ Users []gitter.User
+ Rooms []gitter.Room
+ *config.BridgeConfig
}
var flog *log.Entry
@@ -25,12 +23,8 @@ func init() {
flog = log.WithFields(log.Fields{"module": protocol})
}
-func New(cfg config.Protocol, account string, c chan config.Message) *Bgitter {
- b := &Bgitter{}
- b.Config = &cfg
- b.Remote = c
- b.Account = account
- return b
+func New(cfg *config.BridgeConfig) *Bgitter {
+ return &Bgitter{BridgeConfig: cfg}
}
func (b *Bgitter) Connect() error {