mirror of
https://github.com/42wim/matterbridge.git
synced 2024-11-29 15:49:30 +01:00
Remove UseSlackCircumfix. Use RemoteNickFormat
This commit is contained in:
parent
aceb830378
commit
8fb5c7afa6
@ -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
|
||||||
|
@ -8,18 +8,17 @@ import (
|
|||||||
|
|
||||||
type Config struct {
|
type Config struct {
|
||||||
IRC struct {
|
IRC struct {
|
||||||
UseTLS bool
|
UseTLS bool
|
||||||
SkipTLSVerify bool
|
SkipTLSVerify bool
|
||||||
Server string
|
Server string
|
||||||
Port int
|
Port int
|
||||||
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
|
IgnoreNicks string
|
||||||
IgnoreNicks string
|
|
||||||
}
|
}
|
||||||
Mattermost struct {
|
Mattermost struct {
|
||||||
URL string
|
URL string
|
||||||
|
Loading…
Reference in New Issue
Block a user