[PATCH] mod_muc_badge: If room has no title use localpart of room's jid (fixes #1767)

9 views
Skip to first unread message

Bernhard Geier

unread,
Aug 4, 2022, 10:12:43 AM8/4/22
to proso...@googlegroups.com
Rooms may have a title/name, but they do not have to. A JID is enough.

When trying to get the badge for a room without a title, mod_muc_badge
throws a HTTP error 500 (with Lua 5.1) or shows a "nil" label in the SVG
badge (with Lua 5.2).

This patch uses this JID's localpart if a room has no title to fix that.
mod_muc_badge_-_fix_#1767.patch

Kim Alvefur

unread,
Aug 4, 2022, 10:19:12 AM8/4/22
to proso...@googlegroups.com
># HG changeset patch

Thanks for the patch, it has been applied:
https://hg.prosody.im/prosody-modules/rev/8a4b17e2e984

--
Zash
Reply all
Reply to author
Forward
0 new messages