summaryrefslogtreecommitdiffstats
path: root/bridge/bridge.go
diff options
context:
space:
mode:
authorWim <wim@42.be>2016-08-20 16:29:43 +0200
committerWim <wim@42.be>2016-08-20 18:08:58 +0200
commit3a6c655dfb815c8437fbbb33b7cbf7292055c0a0 (patch)
tree21e0832a644d248a6896b1ea3ee800051768ac6f /bridge/bridge.go
parente11d786775cf64123227a44983067cc463e632f5 (diff)
downloadmatterbridge-msglm-3a6c655dfb815c8437fbbb33b7cbf7292055c0a0.tar.gz
matterbridge-msglm-3a6c655dfb815c8437fbbb33b7cbf7292055c0a0.tar.bz2
matterbridge-msglm-3a6c655dfb815c8437fbbb33b7cbf7292055c0a0.zip
Remove redundant function
Diffstat (limited to 'bridge/bridge.go')
-rw-r--r--bridge/bridge.go6
1 files changed, 1 insertions, 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)