Remove redundant function

This commit is contained in:
Wim 2016-08-20 16:29:43 +02:00
parent e11d786775
commit 3a6c655dfb
1 changed files with 1 additions and 5 deletions

View File

@ -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)