# HG changeset patch # User Kim Alvefur # Date 1675034090 -3600 # Node ID 885323e2a1ce11cfa61922e1c1a626bda6cbd4dd # Parent 56397f3b58c17b43a11b1ddd5f6b00a86aeafbc8 mod_admin_shell: Match substring in muc:affiliations() like muc:occupants() Maybe one day we'll get consistent filtering semantics everywhere. diff -r 56397f3b58c1 -r 885323e2a1ce plugins/mod_admin_shell.lua --- 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;