From dc958f1e40eef23f6aed6eba17c30f3b880b3c08 Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Mon, 30 Jan 2023 00:14:50 +0100 Subject: mod_admin_shell: Match substring in muc:affiliations() like muc:occupants() Maybe one day we'll get consistent filtering semantics everywhere. --- plugins/mod_admin_shell.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/mod_admin_shell.lua b/plugins/mod_admin_shell.lua index 4510d3fa..f8b5fd1c 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; -- cgit v1.2.3