Skip to content

Commit

Permalink
Potentially fix #115 channel case sensitivity
Browse files Browse the repository at this point in the history
Thanks @Rapman4 for the suggested fix
  • Loading branch information
qaisjp authored Mar 29, 2021
1 parent 2fa5603 commit 725266a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bridge/bridge.go
Original file line number Diff line number Diff line change
Expand Up @@ -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, ",")
Expand All @@ -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
}
}
Expand Down

0 comments on commit 725266a

Please sign in to comment.