Merge pull request #2392 from thelounge/xpaw/quit-part
Correctly add quits to parts
This commit is contained in:
commit
8d7cd4ea91
@ -22,15 +22,13 @@ function updateText(condensed, addedTypes) {
|
||||
const obj = getStoredTypes(condensed);
|
||||
|
||||
Object.keys(addedTypes).map((type) => {
|
||||
// Count quits as parts in condensed messages to reduce information density
|
||||
if (type === "quit") {
|
||||
type = "part";
|
||||
}
|
||||
|
||||
obj[type] += addedTypes[type];
|
||||
condensed.data(type, obj[type]);
|
||||
});
|
||||
|
||||
// Count quits as parts in condensed messages to reduce information density
|
||||
obj.part += obj.quit;
|
||||
|
||||
const strings = [];
|
||||
constants.condensedTypes.forEach((type) => {
|
||||
if (obj[type]) {
|
||||
|
Loading…
Reference in New Issue
Block a user