From 580fc7096db1131783820253848c907c2c920ac3 Mon Sep 17 00:00:00 2001 From: Shivaram Lingamneni Date: Wed, 3 Jan 2024 14:37:55 -0500 Subject: [PATCH] fix #2114 Channels with slashes (or other relaymsg separators) in their names were being falsely detected as relaymsg identifiers. --- irc/config.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/irc/config.go b/irc/config.go index c723075c..3649efd1 100644 --- a/irc/config.go +++ b/irc/config.go @@ -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