Mercurial > prosody-modules
comparison mod_muc_log_http/muc_log_http/mod_muc_log_http.lua @ 388:75aea9752062
mod_muc_log_http: Generate room calendar page even when there is no log data.
author | Waqas Hussain <waqas20@gmail.com> |
---|---|
date | Mon, 25 Jul 2011 02:21:40 +0500 |
parents | 90d0e90c5b0e |
children | 60248c463ec3 |
comparison
equal
deleted
inserted
replaced
387:90d0e90c5b0e | 388:75aea9752062 |
---|---|
314 alreadyDoneYears[year] = true; | 314 alreadyDoneYears[year] = true; |
315 end | 315 end |
316 end | 316 end |
317 end | 317 end |
318 | 318 |
319 if days ~= "" then | 319 tmp = html.days.body:gsub("###DAYS_STUFF###", days); |
320 tmp = html.days.body:gsub("###DAYS_STUFF###", days); | 320 tmp = tmp:gsub("###PREVIOUS_ROOM###", previousRoom == "" and node or previousRoom); |
321 tmp = tmp:gsub("###PREVIOUS_ROOM###", previousRoom == "" and node or previousRoom); | 321 tmp = tmp:gsub("###NEXT_ROOM###", nextRoom == "" and node or nextRoom); |
322 tmp = tmp:gsub("###NEXT_ROOM###", nextRoom == "" and node or nextRoom); | 322 tmp = tmp:gsub("###ROOMS###", rooms); |
323 tmp = tmp:gsub("###ROOMS###", rooms); | 323 tmp = tmp:gsub("###ROOMTOPIC###", topic); |
324 tmp = tmp:gsub("###ROOMTOPIC###", topic); | 324 tmp = tmp:gsub("###SINCE###", since); |
325 tmp = tmp:gsub("###SINCE###", since); | 325 tmp = tmp:gsub("###TO###", to); |
326 tmp = tmp:gsub("###TO###", to); | 326 return tmp:gsub("###JID###", bareRoomJid); |
327 return tmp:gsub("###JID###", bareRoomJid); | |
328 end | |
329 end | 327 end |
330 | 328 |
331 local function parseIqStanza(stanza, timeStuff, nick) | 329 local function parseIqStanza(stanza, timeStuff, nick) |
332 local text = nil; | 330 local text = nil; |
333 local victim = nil; | 331 local victim = nil; |