diff mod_muc_log_http/muc_log_http/mod_muc_log_http.lua @ 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 12d6316d9eab
children 07c17b60229a
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)");