diff --git a/import.js b/import.js index f7842c64..7bbf5b3a 100644 --- a/import.js +++ b/import.js @@ -199,9 +199,9 @@ function copyChannelTables(name, cb) { rows = rows.map(function (r) { if (r.rank === 10) { - r.rank = 4; + r.rank = 5; } else if (r.rank >= 3 && r.rank < 10) { - r.rank = 3; + r.rank = 4; } return [r.name, r.rank]; }); diff --git a/lib/database/channels.js b/lib/database/channels.js index f8498f0b..98868e7e 100644 --- a/lib/database/channels.js +++ b/lib/database/channels.js @@ -24,7 +24,7 @@ function initTables(name, owner, callback) { return; } - rank = Math.max(rank, 4); + rank = Math.max(rank, 5); module.exports.setRank(name, owner, rank, function (err) { if (err) { diff --git a/www/js/util.js b/www/js/util.js index 8fa416c8..8b5721d7 100644 --- a/www/js/util.js +++ b/www/js/util.js @@ -1943,8 +1943,9 @@ function formatCSModList() { var ranks = [ { name: "Remove Moderator", rank: 1 }, { name: "Moderator", rank: 2 }, - { name: "Channel Admin", rank: 3 }, - { name: "Channel Owner", rank: 4 } + { name: "Admin", rank: 3 }, + { name: "Owner", rank: 4 }, + { name: "Founder", rank: 5 } ]; ranks.forEach(function (r) { @@ -1962,7 +1963,7 @@ function formatCSModList() { }); }); } else { - $("").addClass("glyphicon glyphicon-ok pull-right") + $("").addClass("glyphicon glyphicon-ok") .appendTo(a); li.addClass("disabled"); }