Software /
code /
prosody-modules
Diff
mod_groups_muc_bookmarks/mod_groups_muc_bookmarks.lua @ 4586:240fa534f586
mod_groups_muc_bookmarks: handle removal of accounts without bookmarks
Otherwise, nil ensues.
author | Jonas Schäfer <jonas@wielicki.name> |
---|---|
date | Sat, 12 Jun 2021 15:29:53 +0200 |
parent | 4425:b3e0295e14a3 |
child | 4861:5fadb991003d |
line wrap: on
line diff
--- a/mod_groups_muc_bookmarks/mod_groups_muc_bookmarks.lua Sat Jun 12 14:47:06 2021 +0200 +++ b/mod_groups_muc_bookmarks/mod_groups_muc_bookmarks.lua Sat Jun 12 15:29:53 2021 +0200 @@ -91,6 +91,9 @@ autojoin = autojoin or false and true local current = get_current_bookmarks(jid, pep_service) + if not current then + return + end current:maptags(function (node) if node.attr.xmlns and node.attr.xmlns ~= XMLNS_XEP0048 then return node