Changeset

3285:38892f9f3fe9

mod_muc_badge: Add spaces around each part of the text.
author Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
date Sat, 25 Aug 2018 17:54:18 +0200
parents 3284:29a4d8b63fb1
children 3286:4d1f6d47c889
files mod_muc_badge/mod_muc_badge.lua
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/mod_muc_badge/mod_muc_badge.lua	Sat Aug 25 17:42:13 2018 +0200
+++ b/mod_muc_badge/mod_muc_badge.lua	Sat Aug 25 17:54:18 2018 +0200
@@ -76,8 +76,8 @@
 			for _ in pairs(room._occupants) do
 				count = count + 1;
 			end
-			local badge_label = room:get_name();
-			local badge_count = string.format(number, count);
+			local badge_label = (" %s "):format(room:get_name());
+			local badge_count = (" %s "):format(string.format(number, count));
 
 			local response = event.response;
 			response.headers.content_type = "image/svg+xml";