From 3a6c655dfb815c8437fbbb33b7cbf7292055c0a0 Mon Sep 17 00:00:00 2001 From: Wim Date: Sat, 20 Aug 2016 16:29:43 +0200 Subject: [PATCH] Remove redundant function --- bridge/bridge.go | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/bridge/bridge.go b/bridge/bridge.go index 8b89097c..372944c7 100644 --- a/bridge/bridge.go +++ b/bridge/bridge.go @@ -111,13 +111,9 @@ 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)