From 265457b45171dcae96a1aac9454e3bda2cd0557a Mon Sep 17 00:00:00 2001 From: Wim Date: Tue, 19 Dec 2017 23:15:03 +0100 Subject: Refactor and add MediaDownloadSize to General --- bridge/xmpp/xmpp.go | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) (limited to 'bridge/xmpp') diff --git a/bridge/xmpp/xmpp.go b/bridge/xmpp/xmpp.go index b5429b1f..9cb6f6ad 100644 --- a/bridge/xmpp/xmpp.go +++ b/bridge/xmpp/xmpp.go @@ -14,9 +14,7 @@ import ( type Bxmpp struct { xc *xmpp.Client xmppMap map[string]string - Config *config.Protocol - Remote chan config.Message - Account string + *config.BridgeConfig } var flog *log.Entry @@ -26,12 +24,9 @@ func init() { flog = log.WithFields(log.Fields{"module": protocol}) } -func New(cfg config.Protocol, account string, c chan config.Message) *Bxmpp { - b := &Bxmpp{} +func New(cfg *config.BridgeConfig) *Bxmpp { + b := &Bxmpp{BridgeConfig: cfg} b.xmppMap = make(map[string]string) - b.Config = &cfg - b.Account = account - b.Remote = c return b } -- cgit v1.2.3