mod_admin_shell: Match substring in muc:affiliations() like muc:occupants()
Maybe one day we'll get consistent filtering semantics everywhere.
--- a/plugins/mod_admin_shell.lua Sun Jan 29 21:37:13 2023 +0100
+++ b/plugins/mod_admin_shell.lua Mon Jan 30 00:14:50 2023 +0100
@@ -1460,7 +1460,7 @@
local total = #affiliated;
if filter then
affiliated:filter(function(affiliation)
- return filter == affiliation[1] or filter == affiliation[2];
+ return filter == affiliation[1] or affiliation[2]:find(filter, 1, true);
end);
end
local displayed = #affiliated;