mirror of
https://github.com/smogon/pokemon-showdown-client.git
synced 2026-10-01 23:32:02 -05:00
Add namelocked rank to client (#701)
Order it between mute and locked, make it not ignore ignores.
This commit is contained in:
committed by
Guangcong Luo
parent
f4d968e837
commit
362cf71966
@@ -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();
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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)] || '');
|
||||
|
||||
Reference in New Issue
Block a user