Mercurial > prosody-modules
diff mod_muc_auto_reserve_nicks/mod_muc_auto_reserve_nicks.lua @ 4951:c83bc703825d
mod_muc_auto_reserve_nicks: Force refresh of nickname (thanks phryk)
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sun, 22 May 2022 20:33:14 +0200 |
parents | 85d4ab318d66 |
children |
line wrap: on
line diff
--- a/mod_muc_auto_reserve_nicks/mod_muc_auto_reserve_nicks.lua Sun May 22 17:05:05 2022 +0200 +++ b/mod_muc_auto_reserve_nicks/mod_muc_auto_reserve_nicks.lua Sun May 22 20:33:14 2022 +0200 @@ -15,5 +15,6 @@ local reserved_nick = jid.resource(occupant.nick); module:log("debug", "Automatically reserving nickname '%s' for <%s>", reserved_nick, user_jid); room:set_affiliation_data(user_jid, "reserved_nickname", reserved_nick); + room._reserved_nicks = nil; -- force refresh of nickname map end end);