# HG changeset patch # User Kim Alvefur # Date 1416505613 -3600 # Node ID 464ed6bc5a73166dac434df96ef3fb57879468af # Parent 7ebec464914e1352f6d3943fb0acb8e294033d92 mod_http_muc_log: Fix use with old (until 0.10) MUC API diff -r 7ebec464914e -r 464ed6bc5a73 mod_http_muc_log/mod_http_muc_log.lua --- a/mod_http_muc_log/mod_http_muc_log.lua Thu Nov 20 15:38:56 2014 +0100 +++ b/mod_http_muc_log/mod_http_muc_log.lua Thu Nov 20 18:46:53 2014 +0100 @@ -203,7 +203,10 @@ if type(room) == "string" then room = get_room(room); end - return room and not room:get_hidden() and not room:get_members_only() and room._data.logging ~= false; + return (room + and not (room.get_hidden or room.is_hidden)(room) + and not (room.get_members_only or room.is_members_only)(room) + and room._data.logging ~= false); end -- FIXME Invent some more efficient API for this @@ -325,7 +328,6 @@ room = jid_split(room.jid); name = room:get_name(); description = room:get_description(); - subject = room:get_subject(); }, i + 1; end end