equal
deleted
inserted
replaced
1458 end |
1458 end |
1459 |
1459 |
1460 local total = #affiliated; |
1460 local total = #affiliated; |
1461 if filter then |
1461 if filter then |
1462 affiliated:filter(function(affiliation) |
1462 affiliated:filter(function(affiliation) |
1463 return filter == affiliation[1] or filter == affiliation[2]; |
1463 return filter == affiliation[1] or affiliation[2]:find(filter, 1, true); |
1464 end); |
1464 end); |
1465 end |
1465 end |
1466 local displayed = #affiliated; |
1466 local displayed = #affiliated; |
1467 local aff_ranking = muc_util.valid_affiliations; |
1467 local aff_ranking = muc_util.valid_affiliations; |
1468 affiliated:sort(function(a, b) |
1468 affiliated:sort(function(a, b) |