mirror of
https://github.com/ergochat/ergo.git
synced 2024-11-15 00:19:29 +01: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
@ -1568,6 +1568,10 @@ func (config *Config) isRelaymsgIdentifier(nick string) bool {
|
||||
return false
|
||||
}
|
||||
|
||||
if strings.HasPrefix(nick, "#") {
|
||||
return false // #2114
|
||||
}
|
||||
|
||||
for _, char := range config.Server.Relaymsg.Separators {
|
||||
if strings.ContainsRune(nick, char) {
|
||||
return true
|
||||
|
Loading…
Reference in New Issue
Block a user