mirror of
https://github.com/ergochat/ergo.git
synced 2025-12-20 02:00:11 -08:00
fix #2114
Channels with slashes (or other relaymsg separators) in their names were being falsely detected as relaymsg identifiers.
This commit is contained in:
parent
15c074078a
commit
580fc7096d
1 changed files with 4 additions and 0 deletions
|
|
@ -1568,6 +1568,10 @@ func (config *Config) isRelaymsgIdentifier(nick string) bool {
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if strings.HasPrefix(nick, "#") {
|
||||||
|
return false // #2114
|
||||||
|
}
|
||||||
|
|
||||||
for _, char := range config.Server.Relaymsg.Separators {
|
for _, char := range config.Server.Relaymsg.Separators {
|
||||||
if strings.ContainsRune(nick, char) {
|
if strings.ContainsRune(nick, char) {
|
||||||
return true
|
return true
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue