# HG changeset patch # User Kim Alvefur # Date 1613763768 -3600 # Node ID 5f27bda5de8021df0769f4fff9e697f3edb85856 # Parent c25eef56e9c931368df6fdc9faf9cdb3a8f8e84c mod_muc_http_defaults: Fix resetting affiliations (it's plural) diff -r c25eef56e9c9 -r 5f27bda5de80 mod_muc_http_defaults/mod_muc_http_defaults.lua --- a/mod_muc_http_defaults/mod_muc_http_defaults.lua Fri Feb 19 20:36:11 2021 +0100 +++ b/mod_muc_http_defaults/mod_muc_http_defaults.lua Fri Feb 19 20:42:48 2021 +0100 @@ -36,7 +36,7 @@ -- COMPAT the room creator is unconditionally made 'owner' -- clear existing affiliation - for existing_affiliation in pairs(room._affiliation) do + for existing_affiliation in pairs(room._affiliations) do room:set_affiliation(true, existing_affiliation, "none"); end