Thumbnail

rani/matterbridge.git

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

commit aa44ec9ac9c5bebf15ac0612a492c53307a1adcf Author: Wim <wim@42.be> Date: Sat Aug 20 16:29:43 2016 +0000 Remove redundant function diff --git a/bridge/bridge.go b/bridge/bridge.go index 8b89097..372944c 100644 --- a/bridge/bridge.go +++ b/bridge/bridge.go @@ -11113 +1119 @@ func (b *Bridge) ignoreMessage(nick string, message string, protocol string) boo   return false  }   -func setNoNickFormat(msg *config.Message) { - msg.Username = msg.Origin + "-" + msg.Username + ": " -} -  func setNickFormat(msg *config.Message, format string) {   if format == "" { - setNoNickFormat(msg) + msg.Username = msg.Origin + "-" + msg.Username + ": "   return   }   msg.Username = strings.Replace(format, "{NICK}", msg.Username, -1)