Changeset

194:58c37562c67d

mod_muc_log_http: show more of the room title
author Thilo Cestonaro <thilo@cestona.ro>
date Mon, 05 Jul 2010 11:12:36 +0200
parents 193:18a0e5c0bb62
children 195:4d9ed6374a1f
files mod_muc_log_http/muc_log_http/mod_muc_log_http.lua
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/mod_muc_log_http/muc_log_http/mod_muc_log_http.lua	Mon Jul 05 14:27:39 2010 +0800
+++ b/mod_muc_log_http/muc_log_http/mod_muc_log_http.lua	Mon Jul 05 11:12:36 2010 +0200
@@ -342,8 +342,8 @@
 		local alreadyDoneYears = {};
 		local temptime = {day=0, month=0, year=0};
 		topic = room._data.subject or "(no subject)"
-		if topic:len() > 60 then
-			topic = topic:sub(1, topic:find(" ", 50)) .. " ..."
+		if topic:len() > 135 then
+			topic = topic:sub(1, topic:find(" ", 120)) .. " ..."
 		end
 		for folder in lfs.dir(path) do
 			local year, month, day = folder:match("^(%d%d)(%d%d)(%d%d)");