comparison mod_muc_log_http/muc_log_http/mod_muc_log_http.lua @ 387:90d0e90c5b0e

mod_muc_log_http: Fixed a typo.
author Waqas Hussain <waqas20@gmail.com>
date Mon, 25 Jul 2011 02:21:40 +0500
parents d54dbbfda3bb
children 75aea9752062
comparison
equal deleted inserted replaced
386:d54dbbfda3bb 387:90d0e90c5b0e
651 node = urldecode(node); 651 node = urldecode(node);
652 652
653 assert(muc_hosts and html.doc, "MUC hosts or theme not loaded"); 653 assert(muc_hosts and html.doc, "MUC hosts or theme not loaded");
654 654
655 if host and not(hosts[host] and hosts[host].modules.muc) then return { status = "404 Not found", body = "No such MUC component" }; end 655 if host and not(hosts[host] and hosts[host].modules.muc) then return { status = "404 Not found", body = "No such MUC component" }; end
656 if host and node and not(muc_hosts[host].modules.muc.rooms[node.."@"..host]) then return { status = "404 Not found", body = "No such MUC room" }; end 656 if host and node and not(hosts[host].modules.muc.rooms[node.."@"..host]) then return { status = "404 Not found", body = "No such MUC room" }; end
657 657
658 if not host then -- main component list 658 if not host then -- main component list
659 return createDoc(generateComponentListSiteContent()); 659 return createDoc(generateComponentListSiteContent());
660 elseif not node then -- room list for component 660 elseif not node then -- room list for component
661 return createDoc(generateRoomListSiteContent(host)); 661 return createDoc(generateRoomListSiteContent(host));