Mercurial > prosody-modules
changeset 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 |
parents | 05c74210c007 |
children | 0105df2138ff |
files | mod_groups_muc_bookmarks/mod_groups_muc_bookmarks.lua |
diffstat | 1 files changed, 3 insertions(+), 0 deletions(-) [+] |
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