Mercurial > prosody-modules
comparison mod_muc_defaults/mod_muc_defaults.lua @ 4420:a81516906822
mod_muc_defaults: handle case where affiliations are unset
Otherwise, this tracebacks in set_affiliations.
author | Jonas Schäfer <jonas@wielicki.name> |
---|---|
date | Sun, 31 Jan 2021 16:12:47 +0100 |
parents | d1bc50890343 |
children |
comparison
equal
deleted
inserted
replaced
4419:1185acb2ab91 | 4420:a81516906822 |
---|---|
83 room = mod_muc.create_room(room_jid); | 83 room = mod_muc.create_room(room_jid); |
84 else | 84 else |
85 module:log("debug", "Configuring already existing room %s", room_jid); | 85 module:log("debug", "Configuring already existing room %s", room_jid); |
86 end | 86 end |
87 configure_room(room, room_data.config); | 87 configure_room(room, room_data.config); |
88 set_affiliations(room, room_data.affiliations); | 88 if room_data.affiliations then |
89 set_affiliations(room, room_data.affiliations); | |
90 end | |
89 end | 91 end |