mirror of https://github.com/calzoneman/sync.git
Fix casing issue
This commit is contained in:
parent
c9d4efdd15
commit
02dd57dad0
|
@ -586,10 +586,11 @@ Callbacks = {
|
|||
},
|
||||
|
||||
setUserRank: function (data) {
|
||||
data.name = data.name.toLowerCase();
|
||||
var entries = $("#cs-chanranks table").data("entries") || [];
|
||||
var found = false;
|
||||
for (var i = 0; i < entries.length; i++) {
|
||||
if (entries[i].name === data.name) {
|
||||
if (entries[i].name.toLowerCase() === data.name) {
|
||||
entries[i].rank = data.rank;
|
||||
found = i;
|
||||
break;
|
||||
|
|
Loading…
Reference in New Issue