Changeset

12871:885323e2a1ce

mod_admin_shell: Match substring in muc:affiliations() like muc:occupants() Maybe one day we'll get consistent filtering semantics everywhere.
author Kim Alvefur <zash@zash.se>
date Mon, 30 Jan 2023 00:14:50 +0100
parents 12870:56397f3b58c1
children 12872:a20923f7d5fd
files plugins/mod_admin_shell.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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;