summaryrefslogtreecommitdiffstats
path: root/bridge/bridge.go
diff options
context:
space:
mode:
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)