Thumbnail

rani/matterbridge.git

Clone URL: https://git.buni.party/rani/matterbridge.git

commit f85575585151fe6d7a2d20f46199d6315b21d0fd Author: Wim <wim@42.be> Date: Tue Mar 06 21:19:00 2018 +0000 Get the correct config values (gateway) diff --git a/gateway/gateway.go b/gateway/gateway.go index c8b1d68..5582665 100644 --- a/gateway/gateway.go +++ b/gateway/gateway.go @@ -22012 +22012 @@ func (gw *Gateway) handleMessage(msg config.Message, dest *bridge.Bridge) []*BrM   }     // only relay join/part when configured - if msg.Event == config.EVENT_JOIN_LEAVE && !gw.Bridges[dest.Account].Config.GetBool("ShowJoinPart") { + if msg.Event == config.EVENT_JOIN_LEAVE && !gw.Bridges[dest.Account].GetBool("ShowJoinPart") {   return brMsgIDs   }     // only relay topic change when configured - if msg.Event == config.EVENT_TOPIC_CHANGE && !gw.Bridges[dest.Account].Config.GetBool("ShowTopicChange") { + if msg.Event == config.EVENT_TOPIC_CHANGE && !gw.Bridges[dest.Account].GetBool("ShowTopicChange") {   return brMsgIDs   }   @@ -3307 +3307 @@ func (gw *Gateway) ignoreMessage(msg *config.Message) bool {  func (gw *Gateway) modifyUsername(msg config.Message, dest *bridge.Bridge) string {   br := gw.Bridges[msg.Account]   msg.Protocol = br.Protocol - if gw.Config.General.StripNick || dest.Config.GetBool("StripNick") { + if gw.Config.General.StripNick || dest.GetBool("StripNick") {   re := regexp.MustCompile("[^a-zA-Z0-9]+")   msg.Username = re.ReplaceAllString(msg.Username, "")   }