Fix open beta bug (lowercased usernames before open beta)
Signed-off-by: Martyn Ranyard <m@rtyn.berlin>
This commit is contained in:
parent
1aa4572f0e
commit
d09736039e
|
@ -447,7 +447,7 @@ func calculateLastSungSongDate(songCache []irc.SingsVideoStruct, SongTitle strin
|
||||||
func calculateLastSungSingerDate(songCache []irc.SingsVideoStruct, Singer string) time.Time {
|
func calculateLastSungSingerDate(songCache []irc.SingsVideoStruct, Singer string) time.Time {
|
||||||
var t time.Time
|
var t time.Time
|
||||||
for _, record := range songCache {
|
for _, record := range songCache {
|
||||||
if record.OtherSinger == Singer {
|
if strings.ToUpper(record.OtherSinger) == strings.ToUpper(Singer) {
|
||||||
if record.Date.After(t) {
|
if record.Date.After(t) {
|
||||||
t = record.Date
|
t = record.Date
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue