aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mod_admin_shell.lua
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2023-01-30 00:14:50 +0100
committerKim Alvefur <zash@zash.se>2023-01-30 00:14:50 +0100
commitdc958f1e40eef23f6aed6eba17c30f3b880b3c08 (patch)
tree88fe130ce5a6bfa96cfbc56557f02b9f9dcec08e /plugins/mod_admin_shell.lua
parent1b71a53fb7c9630684ba749608baee059af2c22c (diff)
downloadprosody-dc958f1e40eef23f6aed6eba17c30f3b880b3c08.tar.gz
prosody-dc958f1e40eef23f6aed6eba17c30f3b880b3c08.zip
mod_admin_shell: Match substring in muc:affiliations() like muc:occupants()
Maybe one day we'll get consistent filtering semantics everywhere.
Diffstat (limited to 'plugins/mod_admin_shell.lua')
-rw-r--r--plugins/mod_admin_shell.lua2
1 files changed, 1 insertions, 1 deletions
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;