mirror of
https://github.com/FrankerFaceZ/FrankerFaceZ.git
synced 2025-07-05 18:48:31 +00:00
Update viewer list functionality to prefer BetterTTV capitalization lookups when BetterTTV is being used, as that list will be much more populated.
This commit is contained in:
parent
d961cb954f
commit
ac81def52e
3 changed files with 11 additions and 5 deletions
|
@ -916,8 +916,11 @@ FFZ.prototype._modify_viewers = function(controller) {
|
|||
|
||||
// Push the chatters, capitalizing them as we go.
|
||||
chatters.sort();
|
||||
while(chatters.length)
|
||||
viewers.push({chatter: FFZ.get_capitalization(chatters.shift())});
|
||||
while(chatters.length) {
|
||||
var viewer = chatters.shift();
|
||||
viewer = f.has_bttv ? BetterTTV.chat.helpers.lookupDisplayName(viewer) : FFZ.get_capitalization(viewer);
|
||||
viewers.push({chatter: viewer});
|
||||
}
|
||||
}
|
||||
|
||||
return viewers;
|
||||
|
|
2
script.min.js
vendored
2
script.min.js
vendored
File diff suppressed because one or more lines are too long
|
@ -79,8 +79,11 @@ FFZ.prototype._modify_viewers = function(controller) {
|
|||
|
||||
// Push the chatters, capitalizing them as we go.
|
||||
chatters.sort();
|
||||
while(chatters.length)
|
||||
viewers.push({chatter: FFZ.get_capitalization(chatters.shift())});
|
||||
while(chatters.length) {
|
||||
var viewer = chatters.shift();
|
||||
viewer = f.has_bttv ? BetterTTV.chat.helpers.lookupDisplayName(viewer) : FFZ.get_capitalization(viewer);
|
||||
viewers.push({chatter: viewer});
|
||||
}
|
||||
}
|
||||
|
||||
return viewers;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue