# HG changeset patch # User Jonas Schäfer # Date 1612105967 -3600 # Node ID a815169068225f37e2a79c18a12c93a5270475fe # Parent 1185acb2ab914b9a5d6c0aac61cd69c3d7d9cb2f mod_muc_defaults: handle case where affiliations are unset Otherwise, this tracebacks in set_affiliations. diff -r 1185acb2ab91 -r a81516906822 mod_muc_defaults/mod_muc_defaults.lua --- a/mod_muc_defaults/mod_muc_defaults.lua Sun Jan 31 16:09:14 2021 +0100 +++ b/mod_muc_defaults/mod_muc_defaults.lua Sun Jan 31 16:12:47 2021 +0100 @@ -85,5 +85,7 @@ module:log("debug", "Configuring already existing room %s", room_jid); end configure_room(room, room_data.config); - set_affiliations(room, room_data.affiliations); + if room_data.affiliations then + set_affiliations(room, room_data.affiliations); + end end