Browse Source

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 3 months ago
parent
commit
580fc7096d
1 changed files with 4 additions and 0 deletions
  1. 4
    0
      irc/config.go

+ 4
- 0
irc/config.go View File

@@ -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

Loading…
Cancel
Save