# HG changeset patch # User Waqas Hussain # Date 1278268734 -18000 # Node ID 12d6316d9eabfc9c2609b01aaa43a7f79774c92f # Parent fa7165dd82ee073a4bc6e5a5bb4a2578cf598352 mod_muc_log_http: Fixed a traceback on rooms with no subject. diff -r fa7165dd82ee -r 12d6316d9eab mod_muc_log_http/muc_log_http/mod_muc_log_http.lua --- 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