mirror of
https://github.com/42wim/matterbridge.git
synced 2024-11-26 14:09:41 +01:00
Remove redundant function
This commit is contained in:
parent
e11d786775
commit
3a6c655dfb
@ -111,13 +111,9 @@ func (b *Bridge) ignoreMessage(nick string, message string, protocol string) boo
|
|||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
|
|
||||||
func setNoNickFormat(msg *config.Message) {
|
|
||||||
msg.Username = msg.Origin + "-" + msg.Username + ": "
|
|
||||||
}
|
|
||||||
|
|
||||||
func setNickFormat(msg *config.Message, format string) {
|
func setNickFormat(msg *config.Message, format string) {
|
||||||
if format == "" {
|
if format == "" {
|
||||||
setNoNickFormat(msg)
|
msg.Username = msg.Origin + "-" + msg.Username + ": "
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
msg.Username = strings.Replace(format, "{NICK}", msg.Username, -1)
|
msg.Username = strings.Replace(format, "{NICK}", msg.Username, -1)
|
||||||
|
Loading…
Reference in New Issue
Block a user