diff options
author | Kim Alvefur <zash@zash.se> | 2023-01-30 00:14:50 +0100 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2023-01-30 00:14:50 +0100 |
commit | dc958f1e40eef23f6aed6eba17c30f3b880b3c08 (patch) | |
tree | 88fe130ce5a6bfa96cfbc56557f02b9f9dcec08e /plugins/mod_admin_shell.lua | |
parent | 1b71a53fb7c9630684ba749608baee059af2c22c (diff) | |
download | prosody-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.lua | 2 |
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; |