Add namelocked rank to client (#701)

Order it between mute and locked, make it not ignore ignores.
This commit is contained in:
Juanma Serrano
2016-04-30 21:04:50 +02:00
committed by Guangcong Luo
parent f4d968e837
commit 362cf71966
3 changed files with 5 additions and 2 deletions

View File

@@ -1501,6 +1501,7 @@
'+': 1,
' ': 0,
'!': 0,
'✖': 0,
'‽': 0
},
rankOrder: {
@@ -1513,7 +1514,8 @@
'+': 7,
' ': 8,
'!': 9,
'‽': 10
'✖': 10,
'‽': 11
},
toggleUserlist: function (e) {
e.preventDefault();

View File

@@ -130,7 +130,7 @@
addPM: function (name, message, target) {
var userid = toUserid(name);
if (app.ignore[userid] && name.substr(0, 1) in {' ': 1, '!': 1, '‽': 1}) return;
if (app.ignore[userid] && name.substr(0, 1) in {' ': 1, '!': 1, '✖': 1, '‽': 1}) return;
var isSelf = (toId(name) === app.user.get('userid'));
var oName = isSelf ? target : name;

View File

@@ -2156,6 +2156,7 @@
'\u2605': "Player (\u2605)",
'+': "Voice (+)",
'‽': "<span style='color:#777777'>Locked (‽)</span>",
'✖': "<span style='color:#777777'>Namelocked (✖)</span>",
'!': "<span style='color:#777777'>Muted (!)</span>"
};
var group = (groupDetails[name.substr(0, 1)] || '');