5
0
mirror of https://github.com/cwinfo/matterbridge.git synced 2024-11-22 16:20:26 +00:00

Remove UseSlackCircumfix. Use RemoteNickFormat

This commit is contained in:
Wim 2016-07-11 21:26:13 +02:00
parent aceb830378
commit 8fb5c7afa6
2 changed files with 11 additions and 14 deletions

View File

@ -356,8 +356,6 @@ func (b *Bridge) handleMatter() {
username = message.Username + ": " username = message.Username + ": "
if b.Config.IRC.RemoteNickFormat != "" { if b.Config.IRC.RemoteNickFormat != "" {
username = strings.Replace(b.Config.IRC.RemoteNickFormat, "{NICK}", message.Username, -1) username = strings.Replace(b.Config.IRC.RemoteNickFormat, "{NICK}", message.Username, -1)
} else if b.Config.IRC.UseSlackCircumfix {
username = "<" + message.Username + "> "
} }
cmds := strings.Fields(message.Text) cmds := strings.Fields(message.Text)
// empty message // empty message

View File

@ -15,7 +15,6 @@ type Config struct {
Nick string Nick string
Password string Password string
Channel string Channel string
UseSlackCircumfix bool
NickServNick string NickServNick string
NickServPassword string NickServPassword string
RemoteNickFormat string RemoteNickFormat string