def filter_allowed(jids, from)
      from = JID.new(from)
      jids.flatten.map {|jid| JID.new(jid).bare }
        .select {|jid| @config.allowed?(jid, from) }
    end
def filter_allowed(jids, from)
      from = JID.new(from)
      jids.flatten.map {|jid| JID.new(jid).bare }
        .select {|jid| @config.allowed?(jid, from) }
    end
Return the bare JIDs from the list that are allowed to talk to
 the +from+ JID.