From 725266ad206eac73f1a199bcd9a072d50319ec4c Mon Sep 17 00:00:00 2001 From: Qais Patankar Date: Mon, 29 Mar 2021 22:50:04 +0100 Subject: [PATCH] Potentially fix #115 channel case sensitivity Thanks @Rapman4 for the suggested fix --- bridge/bridge.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bridge/bridge.go b/bridge/bridge.go index ab660fb..e637e9f 100644 --- a/bridge/bridge.go +++ b/bridge/bridge.go @@ -333,7 +333,7 @@ func (b *Bridge) GetJoinCommand(mappings []Mapping) string { } } - // Just append normal channels to the end of keyed channels + // Just append normal channels to the end of keyed channelsG keyedChannels = append(keyedChannels, channels...) return "JOIN " + strings.Join(keyedChannels, ",") + " " + strings.Join(keys, ",") @@ -343,7 +343,7 @@ func (b *Bridge) GetJoinCommand(mappings []Mapping) string { // Returns nil if a Mapping does not exist. func (b *Bridge) GetMappingByIRC(channel string) (Mapping, bool) { for _, mapping := range b.mappings { - if mapping.IRCChannel == channel { + if strings.EqualFold(mapping.IRCChannel, channel) { return mapping, true } }