--- a/plugins/muc/muc.lib.lua Fri Mar 28 13:11:11 2014 -0400
+++ b/plugins/muc/muc.lib.lua Fri Mar 28 13:14:33 2014 -0400
@@ -276,7 +276,7 @@
local to_occupant = self:get_occupant_by_real_jid(to);
local has_anonymous = self:get_whois() ~= "anyone"
for occupant_jid, occupant in self:each_occupant() do
- if filter and filter(occupant_jid, occupant) then
+ if filter == nil or filter(occupant_jid, occupant) then
local x = st.stanza("x", {xmlns='http://jabber.org/protocol/muc#user'});
local is_anonymous = has_anonymous and occupant.role ~= "moderator" and to_occupant.bare_jid ~= occupant.bare_jid;
self:build_item_list(occupant, x, is_anonymous);