1
0
Fork 0
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:
SirStendec 2015-01-15 16:54:28 -05:00
parent d961cb954f
commit ac81def52e
3 changed files with 11 additions and 5 deletions

View file

@ -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

File diff suppressed because one or more lines are too long

View file

@ -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;