Mercurial > prosody-modules
comparison mod_muc_log_http/muc_log_http/mod_muc_log_http.lua @ 579:513aa6fed9e9
mod_muc_log_http: Don't return a page on missing rooms.
author | Waqas Hussain <waqas20@gmail.com> |
---|---|
date | Wed, 25 Jan 2012 04:21:17 +0500 |
parents | 1a575bcbc843 |
children | 10a9538f41f1 |
comparison
equal
deleted
inserted
replaced
578:1a575bcbc843 | 579:513aa6fed9e9 |
---|---|
265 local attributes = nil; | 265 local attributes = nil; |
266 local since = ""; | 266 local since = ""; |
267 local to = ""; | 267 local to = ""; |
268 local topic = ""; | 268 local topic = ""; |
269 | 269 |
270 if not(prosody.hosts[host] and prosody.hosts[host].muc and prosody.hosts[host].muc.rooms[bareRoomJid]) then | |
271 return; | |
272 end | |
273 | |
270 path = path:gsub("/[^/]*$", ""); | 274 path = path:gsub("/[^/]*$", ""); |
271 attributes = lfs.attributes(path); | 275 attributes = lfs.attributes(path); |
272 do | 276 do |
273 local found = 0; | 277 local found = 0; |
274 for jid, room in pairs(prosody.hosts[host].muc.rooms) do | 278 for jid, room in pairs(prosody.hosts[host].muc.rooms) do |