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) {
|
setUserRank: function (data) {
|
||||||
|
data.name = data.name.toLowerCase();
|
||||||
var entries = $("#cs-chanranks table").data("entries") || [];
|
var entries = $("#cs-chanranks table").data("entries") || [];
|
||||||
var found = false;
|
var found = false;
|
||||||
for (var i = 0; i < entries.length; i++) {
|
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;
|
entries[i].rank = data.rank;
|
||||||
found = i;
|
found = i;
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in New Issue