diff --git a/plugins/mod_admin_shell.lua b/plugins/mod_admin_shell.lua index 4510d3fae..f8b5fd1c4 100644 --- a/plugins/mod_admin_shell.lua +++ b/plugins/mod_admin_shell.lua @@ -1460,7 +1460,7 @@ function def_env.muc:affiliations(room_jid, filter) 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;