diff mod_muc_log_http/muc_log_http/mod_muc_log_http.lua @ 192:12d6316d9eab

mod_muc_log_http: Fixed a traceback on rooms with no subject.
author Waqas Hussain <waqas20@gmail.com>
date Sun, 04 Jul 2010 23:38:54 +0500
parents 03cb7511ae54
children 58c37562c67d
line wrap: on
line diff
--- a/mod_muc_log_http/muc_log_http/mod_muc_log_http.lua	Thu Jul 01 00:52:45 2010 +0500
+++ b/mod_muc_log_http/muc_log_http/mod_muc_log_http.lua	Sun Jul 04 23:38:54 2010 +0500
@@ -341,7 +341,7 @@
 		local first = 1;
 		local alreadyDoneYears = {};
 		local temptime = {day=0, month=0, year=0};
-		topic = room._data.subject
+		topic = room._data.subject or "(no subject)"
 		if topic:len() > 60 then
 			topic = topic:sub(1, topic:find(" ", 50)) .. " ..."
 		end