Pārlūkot izejas kodu

fix #2114

Channels with slashes (or other relaymsg separators) in their names
were being falsely detected as relaymsg identifiers.
tags/v2.13.0-rc1
Shivaram Lingamneni 4 mēnešus atpakaļ
vecāks
revīzija
580fc7096d
1 mainītis faili ar 4 papildinājumiem un 0 dzēšanām
  1. 4
    0
      irc/config.go

+ 4
- 0
irc/config.go Parādīt failu

@@ -1568,6 +1568,10 @@ func (config *Config) isRelaymsgIdentifier(nick string) bool {
1568 1568
 		return false
1569 1569
 	}
1570 1570
 
1571
+	if strings.HasPrefix(nick, "#") {
1572
+		return false // #2114
1573
+	}
1574
+
1571 1575
 	for _, char := range config.Server.Relaymsg.Separators {
1572 1576
 		if strings.ContainsRune(nick, char) {
1573 1577
 			return true

Notiek ielāde…
Atcelt
Saglabāt