mirror of
https://github.com/42wim/matterbridge.git
synced 2024-12-23 03:32:37 +01:00
parent
c211152e23
commit
c8d7fdeedc
@ -170,7 +170,7 @@ type Protocol struct {
|
|||||||
UseTLS bool // IRC
|
UseTLS bool // IRC
|
||||||
UseDiscriminator bool // discord
|
UseDiscriminator bool // discord
|
||||||
UseFirstName bool // telegram
|
UseFirstName bool // telegram
|
||||||
UseUserName bool // discord, matrix
|
UseUserName bool // discord, matrix, mattermost
|
||||||
UseInsecureURL bool // telegram
|
UseInsecureURL bool // telegram
|
||||||
UserName string // IRC
|
UserName string // IRC
|
||||||
VerboseJoinPart bool // IRC
|
VerboseJoinPart bool // IRC
|
||||||
|
@ -177,8 +177,10 @@ func (b *Bmattermost) handleMatterClient(messages chan *config.Message) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Use nickname instead of username if defined
|
// Use nickname instead of username if defined
|
||||||
if nick := b.mc.GetNickName(rmsg.UserID); nick != "" {
|
if !b.GetBool("useusername") {
|
||||||
rmsg.Username = nick
|
if nick := b.mc.GetNickName(rmsg.UserID); nick != "" {
|
||||||
|
rmsg.Username = nick
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
messages <- rmsg
|
messages <- rmsg
|
||||||
@ -232,8 +234,10 @@ func (b *Bmattermost) handleMatterClient6(messages chan *config.Message) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Use nickname instead of username if defined
|
// Use nickname instead of username if defined
|
||||||
if nick := b.mc6.GetNickName(rmsg.UserID); nick != "" {
|
if !b.GetBool("useusername") {
|
||||||
rmsg.Username = nick
|
if nick := b.mc6.GetNickName(rmsg.UserID); nick != "" {
|
||||||
|
rmsg.Username = nick
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
messages <- rmsg
|
messages <- rmsg
|
||||||
|
@ -408,6 +408,10 @@ SkipTLSVerify=true
|
|||||||
## RELOADABLE SETTINGS
|
## RELOADABLE SETTINGS
|
||||||
## Settings below can be reloaded by editing the file
|
## Settings below can be reloaded by editing the file
|
||||||
|
|
||||||
|
# UseUserName shows the username instead of the server nickname
|
||||||
|
# OPTIONAL (default false)
|
||||||
|
UseUserName=false
|
||||||
|
|
||||||
#how to format the list of IRC nicks when displayed in mattermost.
|
#how to format the list of IRC nicks when displayed in mattermost.
|
||||||
#Possible options are "table" and "plain"
|
#Possible options are "table" and "plain"
|
||||||
#OPTIONAL (default plain)
|
#OPTIONAL (default plain)
|
||||||
|
Loading…
Reference in New Issue
Block a user